]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Drop commented out printks
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 18 Dec 2020 18:14:43 +0000 (13:14 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:33:40 +0000 (12:33 -0500)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index b7fed38722e121346817fa3ec8879bff18635748..d024f7618e314431921db71699d47485c432ca55 100644 (file)
@@ -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)
 {