aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorShakeel Butt <[email protected]>2024-10-02 15:51:50 -0700
committerAndrew Morton <[email protected]>2024-11-06 20:11:09 -0800
commit5f5a3e9530beccce4564143eae1518dc5468bb9b (patch)
tree2f788ad6dd034fc1e4988b6e36f954f2bc720f34 /tools/perf/scripts/python/mem-phys-addr.py
parente26060d1fbd31a8583e2e79addc772249c1e22b4 (diff)
mm/truncate: reset xa_has_values flag on each iteration
Currently mapping_try_invalidate() and invalidate_inode_pages2_range() traverses the xarray in batches and then for each batch, maintains and sets the flag named xa_has_values if the batch has a shadow entry to clear the entries at the end of the iteration. However they forgot to reset the flag at the end of the iteration which causes them to always try to clear the shadow entries in the subsequent iterations where there might not be any shadow entries. Fix this inefficiency. Link: https://lkml.kernel.org/r/[email protected] Fixes: 61c663e020d2 ("mm/truncate: batch-clear shadow entries") Signed-off-by: Shakeel Butt <[email protected]> Acked-by: Yu Zhao <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions