Thread (12 messages) 12 messages, 5 authors, 2005-09-02

RE: [PATCH 1/1] Implement shared page tables

From: Dave McCracken <hidden>
Date: 2005-09-02 16:40:32
Also in: lkml

--On Thursday, September 01, 2005 18:58:23 -0700 "Chen, Kenneth W"
[off-list ref] wrote:
quoted
+		prio_tree_iter_init(&iter, &mapping->i_mmap,
+				    vma->vm_start, vma->vm_end);

I think this is a bug.  The radix priority tree for address_space->
i_mmap is keyed on vma->vm_pgoff.  Your patch uses the vma virtual
address to find a shareable range, Which will always fail a match
even though there is one.

Do you really have to iterate through all the vma?  Can't you just break
out of the while loop on first successful match and populating the pmd?
I would think you will find them to be the same pte page. Or did I miss
some thing?
Man, I spaced that whole search code.  I was sure I'd tested to make sure
it was finding matches.  I'll fix all that up in my next release.

Dave McCracken

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help