[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1579595645-251250-1-git-send-email-alex.shi@linux.alibaba.com>
Date: Tue, 21 Jan 2020 16:34:05 +0800
From: Alex Shi <alex.shi@...ux.alibaba.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Matthew Wilcox <willy@...radead.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Richard Fontana <rfontana@...hat.com>,
Armijn Hemel <armijn@...ldur.nl>, linux-kernel@...r.kernel.org
Subject: [PATCH] lib/ida: remove abandoned macros
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@...ux.alibaba.com>
Cc: Matthew Wilcox <willy@...radead.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Richard Fontana <rfontana@...hat.com>
Cc: Armijn Hemel <armijn@...ldur.nl>
Cc: linux-kernel@...r.kernel.org
---
lib/radix-tree.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/lib/radix-tree.c b/lib/radix-tree.c
index c8fa1d274530..2ee6ae3b0ade 100644
--- a/lib/radix-tree.c
+++ b/lib/radix-tree.c
@@ -56,14 +56,6 @@
#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 {
--
1.8.3.1
Powered by blists - more mailing lists