aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorBarry Song <[email protected]>2024-02-21 22:10:28 +1300
committerAndrew Morton <[email protected]>2024-02-23 17:48:34 -0800
commite26f0b939df49d17bda8d5faa4813a255734e8c8 (patch)
tree03699017182abedce2961344e422ade45e9ceca5 /tools/perf/scripts/python/event_analyzing_sample.py
parentb4d3de57cab266fcb536007bf51f42249af364c3 (diff)
mm/swapfile:__swap_duplicate: drop redundant WRITE_ONCE on swap_map for err cases
The code is quite hard to read, we are still writing swap_map after errors happen. Though the written value is as before, has_cache = count & SWAP_HAS_CACHE; count &= ~SWAP_HAS_CACHE; [snipped] WRITE_ONCE(p->swap_map[offset], count | has_cache); It would be better to entirely drop the WRITE_ONCE for both performance and readability. [[email protected]: avoid using goto] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Barry Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions