]> www.infradead.org Git - users/willy/linux.git/commit
mm/page_owner: align with pageblock_nr pages
authorzhong jiang <zhongjiang@huawei.com>
Wed, 5 Dec 2018 00:14:04 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Dec 2018 22:08:53 +0000 (09:08 +1100)
commit3bdc25a42238a60d02d8c255950e84796e2b7f61
tree34c8c71902c7142b5c880ef15e0e85cca764fc2f
parent7ee1a5c01b845f3d26893f313cf7b835db61d1b7
mm/page_owner: align with pageblock_nr pages

When pfn_valid(pfn) returns false, pfn should be aligned with
pageblock_nr_pages other than MAX_ORDER_NR_PAGES in init_pages_in_zone,
because the skipped 2M may be valid pfn, as a result, early allocated
count will not be accurate.

Link: http://lkml.kernel.org/r/1468938136-24228-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/page_owner.c