mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
maple_tree: remove unused mas_is_root_limits()
The last callers of mas_is_root_limits() were removed by commit
b8852ef30c ("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>
This commit is contained in:
committed by
Andrew Morton
parent
dc924f0f85
commit
36a9799b2c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user