Thread (19 messages) 19 messages, 5 authors, 2012-08-09

Re: [PATCH 1/5] [RFC] Add volatile range management code

From: Andrea Righi <hidden>
Date: 2012-08-09 13:35:56
Also in: lkml

On Thu, Aug 09, 2012 at 02:46:37AM -0700, Michel Lespinasse wrote:
On Fri, Jul 27, 2012 at 8:57 PM, John Stultz [off-list ref] wrote:
quoted
v5:
* Drop intervaltree for prio_tree usage per Michel &
  Dmitry's suggestions.
Actually, I believe the ranges you need to track are non-overlapping, correct ?

If that is the case, a simple rbtree, sorted by start-of-range
address, would work best.
(I am trying to remove prio_tree users... :)
John,

JFYI, if you want to try a possible rbtree-based implementation, as
suggested by Michel you could try this one:
https://github.com/arighi/kinterval

This implementation supports insertion, deletion and transparent merging
of adjacent ranges, as well as splitting ranges when chunks removed or
different chunk types are added in the middle of an existing range; so
if I'm not wrong probably you should be able to use this code as is,
without any modification.

If you decide to go this way and/or need help to use it in your patch
set just let me know.

-Andrea

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