* [PATCH] lib/ida: remove abandoned macros
@ 2020-01-21 8:34 Alex Shi
2020-01-31 12:04 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: Alex Shi @ 2020-01-21 8:34 UTC (permalink / raw)
Cc: Matthew Wilcox, Greg Kroah-Hartman, Thomas Gleixner,
Richard Fontana, Armijn Hemel, linux-kernel
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>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Fontana <rfontana@redhat.com>
Cc: Armijn Hemel <armijn@tjaldur.nl>
Cc: linux-kernel@vger.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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] lib/ida: remove abandoned macros
2020-01-21 8:34 [PATCH] lib/ida: remove abandoned macros Alex Shi
@ 2020-01-31 12:04 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2020-01-31 12:04 UTC (permalink / raw)
To: Alex Shi
Cc: Greg Kroah-Hartman, Thomas Gleixner, Richard Fontana,
Armijn Hemel, linux-kernel
On Tue, Jan 21, 2020 at 04:34:05PM +0800, Alex Shi wrote:
> 3 IDA_ started macros aren't used from commit f32f004cddf8 ("ida: Convert
> to XArray"). so better to remove them.
Thanks, applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-31 12:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 8:34 [PATCH] lib/ida: remove abandoned macros Alex Shi
2020-01-31 12:04 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®