diff options
author | Wei Yang <[email protected]> | 2024-10-15 12:07:44 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-06 20:11:14 -0800 |
commit | e852cb1d00ceb4b0156832c13ba3daf7ed93ac17 (patch) | |
tree | bb0da18835e14c29d905037acd04dcdd04357f90 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0cc8d68abe2fdcb7039ece95f784698c0b0dc51e (diff) |
maple_tree: clear request_count for new allocated one
Patch series "maple_tree: simplify mas_push_node()", v2.
When count is not 0, we know head is valid. So we can put the assignment
in if (count) instead of checking the head pointer again.
Also count represents current total, we can assign the new total by
increasing the count by one.
This patch (of 3):
If this is not a new allocated one, the request_count has already been
cleared in mas_set_alloc_req().
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Wei Yang <[email protected]>
Reviewed-by: Liam R. Howlett <[email protected]>
Cc: Sidhartha Kumar <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions