diff options
author | 2021-04-29 23:01:36 -0700 | |
---|---|---|
committer | 2021-04-30 11:20:43 -0700 | |
commit | 39ddb991fc45abcdcddbec7fcdfe28795d0133d7 (patch) | |
tree | 5cd4a3d6f86442064ed8a72e183d98280b96cd70 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/Kconfig: remove default DISCONTIGMEM_MANUAL (diff) | |
download | linux-dev-39ddb991fc45abcdcddbec7fcdfe28795d0133d7.tar.xz linux-dev-39ddb991fc45abcdcddbec7fcdfe28795d0133d7.zip |
mm, page_alloc: avoid page_to_pfn() in move_freepages()
The start_pfn and end_pfn are already available in move_freepages_block(),
there is no need to go back and forth between page and pfn in
move_freepages and move_freepages_block, and pfn_valid_within() should
validate pfn first before touching the page.
Link: https://lkml.kernel.org/r/20210323131215.934472-1-liushixin2@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions