From: Liam R. Howlett Date: Fri, 18 Dec 2020 18:14:43 +0000 (-0500) Subject: maple_tree: Drop commented out printks X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a73406bd1568f26e2de57686c54b81445587b814;p=users%2Fjedix%2Flinux-maple.git maple_tree: Drop commented out printks Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index b7fed38722e1..d024f7618e31 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) {