aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@oracle.com>2023-05-18 10:55:39 -0400
committerAndrew Morton <akpm@linux-foundation.org>2023-06-09 16:25:34 -0700
commitdd9a85138280d8caef2de6d3e533ee286ca200d6 (patch)
treef03d568133213e4b67efb5df36e16fa616056768 /mm/page_alloc.c
parentmaple_tree: relocate mas_rewalk() and mas_rewalk_if_dead() (diff)
downloadwireguard-linux-dd9a85138280d8caef2de6d3e533ee286ca200d6.tar.xz
wireguard-linux-dd9a85138280d8caef2de6d3e533ee286ca200d6.zip
maple_tree: introduce mas_prev_slot() interface
Sometimes the user needs to revert to the previous slot, regardless of if it is empty or not. Add an interface to go to the previous slot. Since there can't be two consecutive NULLs in the tree, the mas_prev() function can be implemented by calling mas_prev_slot() a maximum of 2 times. Change the underlying interface to use mas_prev_slot() to align the code. Link: https://lkml.kernel.org/r/20230518145544.1722059-31-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: David Binderman <dcb314@hotmail.com> Cc: Peng Zhang <zhangpeng.00@bytedance.com> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Vernon Yang <vernon2gm@gmail.com> Cc: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions