diff options
| author | Liam R. Howlett <[email protected]> | 2023-05-18 10:55:36 -0400 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-06-09 16:25:33 -0700 |
| commit | fff4a58cc00b3baef860c82d6e5e149f71c79d44 (patch) | |
| tree | df07466b60f80a679d7926926dc82fb26f7c91eb /tools/perf/scripts/python | |
| parent | 17e7436bd327364d46f75d40fd093120ca533b7e (diff) | |
maple_tree: introduce mas_next_slot() interface
Sometimes, during a tree walk, the user needs the next slot regardless of
if it is empty or not. Add an interface to get the next slot.
Since there are no consecutive NULLs allowed in the tree, the mas_next()
function can only advance two slots at most. So use the new
mas_next_slot() interface to align both implementations. Use this method
for mas_find() as well.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liam R. Howlett <[email protected]>
Cc: David Binderman <[email protected]>
Cc: Peng Zhang <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Vernon Yang <[email protected]>
Cc: Wei Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions