linux-yocto/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 xarray: Add definition of struct xarray 2018-10-21 10:45:53 -04:00
cpu.h redo: radix tree test suite: fix compilation 2016-12-15 11:04:20 -08:00
idr.h Reimplement IDR and IDA using the radix tree 2017-02-13 21:44:01 -05:00
init.h maple_tree: add __init and __exit to test module 2023-06-09 16:25:31 -07:00
kconfig.h xarray: Add definition of struct xarray 2018-10-21 10:45:53 -04:00
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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
preempt.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
radix-tree.h xarray: Replace exceptional entries 2018-09-29 22:47:49 -04:00
rcupdate.h rcu: Don't return a value from rcu_assign_pointer() 2019-06-13 15:38:34 -07:00
xarray.h radix tree test suite: Fix compilation 2018-08-21 23:31:20 -04:00