Thread (44 messages) 44 messages, 9 authors, 2012-07-04

Re: [PATCH -mm v2 01/11] mm: track free size between VMAs in VMA rbtree

From: Peter Zijlstra <peterz@infradead.org>
Date: 2012-06-26 08:38:10
Also in: lkml

On Mon, 2012-06-25 at 17:52 -0400, Rik van Riel wrote:
quoted
The thing you propose, the double search, once for len, and once for len
+align-1 doesn't guarantee you'll find a hole. All holes of len might be
mis-aligned but the len+align-1 search might overlook a hole of suitable
size and alignment, you'd have to search the entire range: [len, len
+align-1], and that's somewhat silly.
This may still be good enough. 
OK, as long as this is clearly mentioned in a comment near there.

It just annoys me that I cannot come up with anything better :-)

--
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