summaryrefslogtreecommitdiff
path: root/mm/page_owner.c
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2016-10-12 10:11:43 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2016-10-12 14:17:41 +1100
commit90f3161602b6df8e8c45262403ccfc59bb53d65c (patch)
tree40dcd8accd796e8d6c5aac1a9fd8b5a68cad4c31 /mm/page_owner.c
parentbd03840fafae232a62ac4f434a19adcffe903b3b (diff)
downloadlinux-next-90f3161602b6df8e8c45262403ccfc59bb53d65c.tar.gz
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 <zhongjiang@huawei.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_owner.c')
-rw-r--r--mm/page_owner.c2
1 files changed, 1 insertions, 1 deletions
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;
}