twx-linux/tools/testing/radix-tree/linux
Liam R. Howlett bf857ddd21 maple_tree: move debug check to __mas_set_range()
__mas_set_range() was created to shortcut resetting the maple state and a
debug check was added to the caller (the vma iterator) to ensure the
internal maple state remains safe to use.  Move the debug check from the
vma iterator into the maple tree itself so other users do not incorrectly
use the advanced maple state modification.

Fallout from this change include a large amount of debug setup needed to
be moved to earlier in the header, and the maple_tree.h radix-tree test
code needed to move the inclusion of the header to after the atomic
define.  None of those changes have functional changes.

Link: https://lkml.kernel.org/r/20231101171629.3612299-4-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Peng Zhang <zhangpeng.00@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-12-12 10:56:57 -08:00
..
bug.h
cpu.h
idr.h
init.h maple_tree: add __init and __exit to test module 2023-06-09 16:25:31 -07:00
kconfig.h
kernel.h radix tree test suite: add pr_err define 2022-09-26 19:46:13 -07:00
kmemleak.h
local_lock.h radix tree test suite: Fix compilation 2020-10-07 09:07:49 -04:00
lockdep.h radix tree test suite: add lockdep_is_held to header 2022-09-26 19:46:14 -07:00
maple_tree.h maple_tree: move debug check to __mas_set_range() 2023-12-12 10:56:57 -08:00
percpu.h
preempt.h
radix-tree.h
rcupdate.h rcu: Don't return a value from rcu_assign_pointer() 2019-06-13 15:38:34 -07:00
xarray.h