]> www.infradead.org Git - users/willy/xarray.git/commitdiff
radix tree: Remove radix_tree_maybe_preload
authorMatthew Wilcox <willy@infradead.org>
Wed, 17 Oct 2018 18:43:43 +0000 (14:43 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 8 Aug 2019 18:01:05 +0000 (14:01 -0400)
This function is now unused; delete it.

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

index a9581ade23143c046e02ac22a4bf97d1c541cfca..3d825c348a7b85f9e479d2f8dce0360e15e7250f 100644 (file)
@@ -224,7 +224,6 @@ unsigned int radix_tree_gang_lookup(const struct radix_tree_root *,
                        void **results, unsigned long first_index,
                        unsigned int max_items);
 int radix_tree_preload(gfp_t gfp_mask);
-int radix_tree_maybe_preload(gfp_t gfp_mask);
 void radix_tree_init(void);
 void *radix_tree_tag_set(struct radix_tree_root *,
                        unsigned long index, unsigned int tag);
index d46e6b60e2ef9ca948121477b467a584dc7adbe3..4cc27ae8344c774ab712e041d4b48e812910cb62 100644 (file)
@@ -379,21 +379,6 @@ int radix_tree_preload(gfp_t gfp_mask)
 }
 EXPORT_SYMBOL(radix_tree_preload);
 
-/*
- * The same as above function, except we don't guarantee preloading happens.
- * We do it, if we decide it helps. On success, return zero with preemption
- * disabled. On error, return -ENOMEM with preemption not disabled.
- */
-int radix_tree_maybe_preload(gfp_t gfp_mask)
-{
-       if (gfpflags_allow_blocking(gfp_mask))
-               return __radix_tree_preload(gfp_mask, RADIX_TREE_PRELOAD_SIZE);
-       /* Preloading doesn't help anything with this gfp mask, skip it */
-       preempt_disable();
-       return 0;
-}
-EXPORT_SYMBOL(radix_tree_maybe_preload);
-
 static unsigned radix_tree_load_root(const struct radix_tree_root *root,
                struct radix_tree_node **nodep, unsigned long *maxindex)
 {