From: zhong jiang Date: Sat, 10 Sep 2016 10:34:16 +0000 (+1000) Subject: mm/vmstat.c: walk the zone in pageblock_nr_pages steps X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8ad9c0046afd7c2c66530d44e43322918f2ef98c;p=deliverable%2Flinux.git mm/vmstat.c: walk the zone in pageblock_nr_pages steps when walking the zone, we can happens to the holes. we should not align MAX_ORDER_NR_PAGES, so it can skip the normal memory. In addition, pagetypeinfo_showmixedcount_print reflect fragmentization. we hope to get more accurate data. therefore, I decide to fix it. Link: http://lkml.kernel.org/r/1469502526-24486-2-git-send-email-zhongjiang@huawei.com Signed-off-by: zhong jiang Cc: Joonsoo Kim Signed-off-by: Andrew Morton --- diff --git a/mm/page_owner.c b/mm/page_owner.c index 754efdd52bf7..c3cee247f2e6 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -261,7 +261,7 @@ void pagetypeinfo_showmixedcount_print(struct seq_file *m, */ for (; pfn < end_pfn; ) { if (!pfn_valid(pfn)) { - pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); + pfn = ALIGN(pfn + 1, pageblock_nr_pages); continue; }