diff options
| author | Miaohe Lin <[email protected]> | 2022-06-25 17:28:13 +0800 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-03 18:08:51 -0700 |
| commit | 2f55f070e5b80f130f5b161931ca91ce9cb2e625 (patch) | |
| tree | 5d8fe137d61c4a2933e98cb383506977bce92703 /tools/perf/scripts/python | |
| parent | 36ee2c784af0dcfa9bb442f7fa68c842d48371fc (diff) | |
mm/khugepaged: minor cleanup for collapse_file
nr_none is always 0 for non-shmem case because the page can be read from
the backend store. So when nr_none ! = 0, it must be in is_shmem case.
Also only adjust the nrpages and uncharge shmem when nr_none != 0 to save
cpu cycles.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: Zach O'Keefe <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: David Howells <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: NeilBrown <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Yang Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions