diff options
| author | Liam R. Howlett <[email protected]> | 2023-11-01 13:16:25 -0400 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-12 10:56:58 -0800 |
| commit | 067311d33e650adfe7ae23765959ddcc1ba18510 (patch) | |
| tree | 68062bfddccd0ef9e9faca77845bbaf1ccb108ae /tools/perf/scripts/python | |
| parent | 271f61a8b41dcd86e1ecc2e0455bcc071bc7dde4 (diff) | |
maple_tree: separate ma_state node from status
The maple tree node is overloaded to keep status as well as the active
node. This, unfortunately, results in a re-walk on underflow or overflow.
Since the maple state has room, the status can be placed in its own enum
in the structure. Once an underflow/overflow is detected, certain modes
can restore the status to active and others may need to re-walk just that
one node to see the entry.
The status being an enum has the benefit of detecting unhandled status in
switch statements.
[[email protected]: fix comments about MAS_*]
Link: https://lkml.kernel.org/r/[email protected]
[[email protected]: update forking to separate maple state and node]
Link: https://lkml.kernel.org/r/[email protected]
[[email protected]: fix mas_prev() state separation code]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liam R. Howlett <[email protected]>
Cc: Peng Zhang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions