[lkml]   [2014]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 03/10] lib: radix-tree: radix_tree_delete_item()
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 traversals want to delete entries as
> well because they don't have to do an second, locked lookup to verify
> the slot has not changed under them before deleting the entry.
> Signed-off-by: Johannes Weiner <>
> Reviewed-by: Minchan Kim <>
> Reviewed-by: Rik van Riel <>

Acked-by: Mel Gorman <>

Mel Gorman

 \ /
  Last update: 2014-02-12 12:21    [W:0.144 / U:1.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site