aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2020-04-01 21:06:16 -0700
committerLinus Torvalds <[email protected]>2020-04-02 09:35:27 -0700
commit2406b76fe815dbc7f97a19995b8d80eacc887895 (patch)
tree6b29743a8b0556347e9e188f7dbb4dd6d10359d7 /tools/perf/scripts/python/syscall-counts.py
parent218209487c3da2f6d861b236c11226b6eca7b7b7 (diff)
mm/swap_slots.c: assign|reset cache slot by value directly
Currently we use a tmp pointer, pentry, to transfer and reset swap cache slot, which is a little redundant. Swap cache slot stores the entry value directly, assign and reset it by value would be straight forward. Also this patch merges the else and if, since this is the only case we refill and repeat swap cache. Signed-off-by: Wei Yang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Tim Chen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions