ida: remove abandoned macros
authorAlex Shi <alex.shi@linux.alibaba.com>
Tue, 21 Jan 2020 08:34:05 +0000 (16:34 +0800)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 31 Jan 2020 20:09:49 +0000 (15:09 -0500)
3 IDA_ started macros aren't used from commit f32f004cddf8 ("ida: Convert
to XArray"). so better to remove them.

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
lib/radix-tree.c

index c8fa1d2..2ee6ae3 100644 (file)
@@ -56,14 +56,6 @@ struct kmem_cache *radix_tree_node_cachep;
 #define IDR_PRELOAD_SIZE       (IDR_MAX_PATH * 2 - 1)
 
 /*
- * The IDA is even shorter since it uses a bitmap at the last level.
- */
-#define IDA_INDEX_BITS         (8 * sizeof(int) - 1 - ilog2(IDA_BITMAP_BITS))
-#define IDA_MAX_PATH           (DIV_ROUND_UP(IDA_INDEX_BITS, \
-                                               RADIX_TREE_MAP_SHIFT))
-#define IDA_PRELOAD_SIZE       (IDA_MAX_PATH * 2 - 1)
-
-/*
  * Per-cpu pool of preloaded nodes
  */
 struct radix_tree_preload {