Re: [patch 03/10] lib: radix-tree: radix_tree_delete_item()

2014-02-12 Thread Mel Gorman
On Mon, Feb 03, 2014 at 07:53:35PM -0500, Johannes Weiner wrote: > Provide a function that does not just delete an entry at a given > index, but also allows passing in an expected item. Delete only if > that item is still located at the specified index. > > This is handy when lockless tree traver

[patch 03/10] lib: radix-tree: radix_tree_delete_item()

2014-02-03 Thread Johannes Weiner
Provide a function that does not just delete an entry at a given index, but also allows passing in an expected item. Delete only if that item is still located at the specified index. This is handy when lockless tree traversals want to delete entries as well because they don't have to do an second