We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce1364 commit d336e94Copy full SHA for d336e94
mm/vmstat.c
@@ -1223,11 +1223,10 @@ static void pagetypeinfo_showblockcount_print(struct seq_file *m,
1223
for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) {
1224
struct page *page;
1225
1226
- if (!pfn_valid(pfn))
+ page = pfn_to_online_page(pfn);
1227
+ if (!page)
1228
continue;
1229
- page = pfn_to_page(pfn);
1230
-
1231
/* Watch for unexpected holes punched in the memmap */
1232
if (!memmap_valid_within(pfn, page, zone))
1233
0 commit comments