Skip to content

Commit

Permalink
mm/vmstat.c: walk the zone in pageblock_nr_pages steps
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
xiongzhongjiang authored and hnaz committed Mar 17, 2017
1 parent 1f81a71 commit f2aee7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_owner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f2aee7d

Please sign in to comment.