summaryrefslogtreecommitdiff
path: root/include/linux/idr.h
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2017-11-28 10:01:24 -0500
committerMatthew Wilcox <mawilcox@microsoft.com>2018-02-06 16:40:32 -0500
commit322d884ba731e05ca79ae58e9dee1ef7dc4de504 (patch)
tree23646b0840d74b695f8e0b44f176283830c2cf8f /include/linux/idr.h
parent234a4624efe5629a777b4c00dbdf41dd8b7332db (diff)
downloadlwn-322d884ba731e05ca79ae58e9dee1ef7dc4de504.tar.gz
lwn-322d884ba731e05ca79ae58e9dee1ef7dc4de504.zip
idr: Delete idr_find_ext function
Simply changing idr_remove's 'id' argument to 'unsigned long' works for all callers. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'include/linux/idr.h')
-rw-r--r--include/linux/idr.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/idr.h b/include/linux/idr.h
index f1299c4dc45f..7867d6117535 100644
--- a/include/linux/idr.h
+++ b/include/linux/idr.h
@@ -179,16 +179,11 @@ static inline void idr_preload_end(void)
* This function can be called under rcu_read_lock(), given that the leaf
* pointers lifetimes are correctly managed.
*/
-static inline void *idr_find_ext(const struct idr *idr, unsigned long id)
+static inline void *idr_find(const struct idr *idr, unsigned long id)
{
return radix_tree_lookup(&idr->idr_rt, id);
}
-static inline void *idr_find(const struct idr *idr, int id)
-{
- return idr_find_ext(idr, id);
-}
-
/**
* idr_for_each_entry - iterate over an idr's elements of a given type
* @idr: idr handle