OSDN Git Service

test_maple_tree: test modifications while iterating
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 20 Jan 2023 16:26:05 +0000 (11:26 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Feb 2023 00:51:31 +0000 (16:51 -0800)
commit5159d64b335401fa83f18c27e2267f1eafc41bd3
treef9e26aeec47e7ae39ce393ba6e03b874cc7d9d32
parent50e81c82ad947045c7ed26ddc9acb17276b653b6
test_maple_tree: test modifications while iterating

Add a testcase to ensure the iterator detects bad states on modifications
and does what the user expects

Link: https://lkml.kernel.org/r/20230120162650.984577-5-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_maple_tree.c