summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZhan Xusheng <zhanxusheng1024@gmail.com>2026-08-05 15:05:29 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-08-20 18:24:31 -0700
commit58ef4551474fb1304e8fb7659144547e731913e5 (patch)
tree71d6346ac39ab874a0c88911eb806075e8c21fe1 /lib
parent7cd1357f0a1092cdb24b48b945f91bca5b39651e (diff)
downloadlinux-next-58ef4551474fb1304e8fb7659144547e731913e5.tar.gz
linux-next-58ef4551474fb1304e8fb7659144547e731913e5.zip
maple_tree: remove unused mas_is_root_limits()
The last callers of mas_is_root_limits() were removed by commit b8852ef30c67 ("maple_tree: remove maple big node and subtree structs"), together with the maple subtree state (mast_*) code that used it. As a static inline it does not trigger -Wunused-function, so it went unnoticed. Remove it. No functional change. Link: https://lore.kernel.org/20260805070529.4118794-1-zhanxusheng@xiaomi.com Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com> Reviewed-by: Liam R. Howlett (Oracle) <liam@infradead.org> Cc: Alice Ryhl <aliceryhl@google.com> Cc: Andrew Ballance <andrewjballance@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/maple_tree.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 529acc056e55..b48bc4064ad2 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -356,11 +356,6 @@ static __always_inline bool mte_is_root(const struct maple_enode *node)
return ma_is_root(mte_to_node(node));
}
-static inline bool mas_is_root_limits(const struct ma_state *mas)
-{
- return !mas->min && mas->max == ULONG_MAX;
-}
-
static __always_inline bool mt_is_alloc(struct maple_tree *mt)
{
return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE);