Skip to content
Snippets Groups Projects
Commit d3e709e6 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

idr: Return the deleted entry from idr_remove


It is a relatively common idiom (8 instances) to first look up an IDR
entry, and then remove it from the tree if it is found, possibly doing
further operations upon the entry afterwards.  If we change idr_remove()
to return the removed object, all of these users can save themselves a
walk of the IDR tree.

Signed-off-by: default avatarMatthew Wilcox <mawilcox@microsoft.com>
parent 8ac04868
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment