radix tree: Remove radix_tree_iter_find
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 2 Nov 2019 02:21:54 +0000 (22:21 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 2 Nov 2019 02:26:34 +0000 (22:26 -0400)
This API is unsafe to use under the RCU lock.  With no in-tree users
remaining, remove it to prevent future bugs.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/radix-tree.h

index b5116013f27ef981bc1d5fcac8dd34831b60e04c..63e62372443a501d33d42e6333419004ae614b6f 100644 (file)
@@ -315,24 +315,6 @@ radix_tree_iter_lookup(const struct radix_tree_root *root,
        return radix_tree_next_chunk(root, iter, RADIX_TREE_ITER_CONTIG);
 }
 
-/**
- * radix_tree_iter_find - find a present entry
- * @root: radix tree root
- * @iter: iterator state
- * @index: start location
- *
- * This function returns the slot containing the entry with the lowest index
- * which is at least @index.  If @index is larger than any present entry, this
- * function returns NULL.  The @iter is updated to describe the entry found.
- */
-static inline void __rcu **
-radix_tree_iter_find(const struct radix_tree_root *root,
-                       struct radix_tree_iter *iter, unsigned long index)
-{
-       radix_tree_iter_init(iter, index);
-       return radix_tree_next_chunk(root, iter, 0);
-}
-
 /**
  * radix_tree_iter_retry - retry this chunk of the iteration
  * @iter:      iterator state