Commit 3a00e7c4 authored by Alex Shi's avatar Alex Shi Committed by Matthew Wilcox (Oracle)

ida: remove abandoned macros

3 IDA_ started macros aren't used from commit f32f004c ("ida: Convert
to XArray"). so better to remove them.
Signed-off-by: default avatarAlex Shi <alex.shi@linux.alibaba.com>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent 24a448b1
...@@ -55,14 +55,6 @@ struct kmem_cache *radix_tree_node_cachep; ...@@ -55,14 +55,6 @@ struct kmem_cache *radix_tree_node_cachep;
RADIX_TREE_MAP_SHIFT)) RADIX_TREE_MAP_SHIFT))
#define IDR_PRELOAD_SIZE (IDR_MAX_PATH * 2 - 1) #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 * Per-cpu pool of preloaded nodes
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment