aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2020-04-01 21:06:26 -0700
committerLinus Torvalds <[email protected]>2020-04-02 09:35:28 -0700
commitcb77445132aed64ecea286edfbcfbc000b8f1f73 (patch)
treef313bfcec28300512ec35755a9b158e6309853b9 /tools/perf/scripts
parent9a9b6cce630d14851ab09534b6462258486048cd (diff)
mm/swap_state.c: use the same way to count page in [add_to|delete_from]_swap_cache
add_to_swap_cache() and delete_from_swap_cache() are counterparts, while currently they use different ways to count pages. It doesn't break anything because we only have two sizes for PageAnon, but this is confusing and not good practice. This patch corrects it by making both functions use hpage_nr_pages(). Signed-off-by: Wei Yang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions