Skip to content

Commit ef5c3de

Browse files
howlettakpm00
authored andcommitted
maple_tree: fix node allocation testing on 32 bit
Internal node counting was altered and the 64 bit test was updated, however the 32bit test was missed. Restore the 32bit test to a functional state. Link: https://lore.kernel.org/linux-mm/CAMuHMdV4T53fOw7VPoBgPR7fP6RYqf=CBhD_y_vOg53zZX_DnA@mail.gmail.com/ Link: https://lkml.kernel.org/r/[email protected] Fixes: 541e06b ("maple_tree: remove GFP_ZERO from kmem_cache_alloc() and kmem_cache_alloc_bulk()") Signed-off-by: Liam R. Howlett <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 7a93c71 commit ef5c3de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/radix-tree/maple.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ static noinline void __init check_new_node(struct maple_tree *mt)
206206
e = i - 1;
207207
} else {
208208
if (i >= 4)
209-
e = i - 4;
210-
else if (i == 3)
211-
e = i - 2;
209+
e = i - 3;
210+
else if (i >= 1)
211+
e = i - 1;
212212
else
213213
e = 0;
214214
}

0 commit comments

Comments
 (0)