Commit bf5b10b3 authored by Kefeng Wang's avatar Kefeng Wang Committed by Chen Jun
Browse files

mm, page_alloc: avoid page_to_pfn() in move_freepages()



hulk inclusion
category: bugfix
bugzilla: 46856
CVE: NA

---------------------------

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.

Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
parent 3e93dbd2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment