Centos-kernel-stream-9/tools/testing/radix-tree/linux
Rafael Aquini 2622e030e3 maple_tree: move debug check to __mas_set_range()
JIRA: https://issues.redhat.com/browse/RHEL-27745

This patch is a backport of the following upstream commit:
commit bf857ddd21d0bffc1edafc317e8e2ce0d6d5950c
Author: Liam R. Howlett <Liam.Howlett@oracle.com>
Date:   Wed Nov 1 13:16:20 2023 -0400

    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>

Signed-off-by: Rafael Aquini <raquini@redhat.com>
2024-12-09 12:23:41 -05:00
..
bug.h xarray: Add definition of struct xarray 2018-10-21 10:45:53 -04:00
cpu.h
idr.h
init.h maple_tree: add __init and __exit to test module 2023-09-26 10:23:41 -06: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 2023-03-07 01:23:55 -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 2023-03-07 01:23:55 -07:00
maple_tree.h maple_tree: move debug check to __mas_set_range() 2024-12-09 12:23:41 -05: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