From a73406bd1568f26e2de57686c54b81445587b814 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 18 Dec 2020 13:14:43 -0500 Subject: [PATCH] maple_tree: Drop commented out printks Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index b7fed38722e12..d024f7618e314 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3271,25 +3271,21 @@ static inline bool mas_append(struct ma_state *mas, void *entry, * one. */ new_end = end + 1; - //printk("store %lu - %lu| %lu %lu\n", mas->index, mas->last, min, mas->max); if (min < mas->index) new_end++; if (new_end >= max_slots) return false; - //printk("move last to %u\n", new_end); if (new_end < max_slots - 1) pivots[new_end] = pivots[end]; slots[new_end--] = content; - //printk("store to %u\n", new_end); if (new_end < max_slots - 1) pivots[new_end] = mas->last; slots[new_end--] = entry; if (min < mas->index) { - //printk("fix min in %u\n", new_end); pivots[new_end] = mas->index - 1; mas->offset++; } @@ -5169,6 +5165,7 @@ unsigned long mt_get_alloc_size(void) #else // __KERNEL__ is defined. #define MA_PTR "%px" #endif +#if defined (CONFIG_MAPLE_SEARCH) /* mas limits not adjusted */ static void mas_dfs_preorder(struct ma_state *mas) { @@ -5214,7 +5211,6 @@ done: mas->node = MAS_NONE; } -#if CONFIG_MAPLE_SEARCH static void mas_bfs_preorder(struct ma_state *mas) { -- 2.50.1