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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:23:55 +0000 (10:23 +0200)
commitcba7ddf552bb6582a1d46ca8e163850a73cac8b8
treec8f97b307992af3ca1fc9c7459b4a0fffe2a1aa4
parenta6e2a0e4144c546ed5eee2eaa00cd260fa256c9d
test_maple_tree: test modifications while iterating

[ Upstream commit 5159d64b335401fa83f18c27e2267f1eafc41bd3 ]

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>
Stable-dep-of: 7a93c71a6714 ("maple_tree: fix 32 bit mas_next testing")
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/test_maple_tree.c