Skip to content

Commit

Permalink
maple_tree: remove the redundant code
Browse files Browse the repository at this point in the history
The macros CONFIG_DEBUG_MAPLE_TREE_VERBOSE no one uses, functions
mas_dup_tree() and mas_dup_store() are not implemented, just function
declaration, so drop it.

Link: https://lkml.kernel.org/r/20221221060058.609003-6-vernon2gm@gmail.com
Signed-off-by: Vernon Yang <vernon2gm@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Vernon Yang authored and Andrew Morton committed Jan 19, 2023
1 parent 84fd3e1 commit eabb305
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/linux/maple_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <linux/rcupdate.h>
#include <linux/spinlock.h>
/* #define CONFIG_MAPLE_RCU_DISABLED */
/* #define CONFIG_DEBUG_MAPLE_TREE_VERBOSE */

/*
* Allocated nodes are mutable until they have been inserted into the tree,
Expand Down Expand Up @@ -483,9 +482,6 @@ static inline bool mas_is_paused(struct ma_state *mas)
return mas->node == MAS_PAUSE;
}

void mas_dup_tree(struct ma_state *oldmas, struct ma_state *mas);
void mas_dup_store(struct ma_state *mas, void *entry);

/*
* This finds an empty area from the highest address to the lowest.
* AKA "Topdown" version,
Expand Down

0 comments on commit eabb305

Please sign in to comment.