Skip to content

Commit 8cf0889

Browse files
xiongzhongjianghnaz
authored andcommitted
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/[email protected] Signed-off-by: zhong jiang <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 37988c7 commit 8cf0889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/page_owner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void pagetypeinfo_showmixedcount_print(struct seq_file *m,
261261
*/
262262
for (; pfn < end_pfn; ) {
263263
if (!pfn_valid(pfn)) {
264-
pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES);
264+
pfn = ALIGN(pfn + 1, pageblock_nr_pages);
265265
continue;
266266
}
267267

0 commit comments

Comments
 (0)