Loading mm/page_owner.c +5 −1 Original line number Diff line number Diff line Loading @@ -285,7 +285,11 @@ void pagetypeinfo_showmixedcount_print(struct seq_file *m, continue; if (PageBuddy(page)) { pfn += (1UL << page_order(page)) - 1; unsigned long freepage_order; freepage_order = page_order_unsafe(page); if (freepage_order < MAX_ORDER) pfn += (1UL << freepage_order) - 1; continue; } Loading mm/vmstat.c +14 −9 Original line number Diff line number Diff line Loading @@ -1122,6 +1122,7 @@ static void frag_stop(struct seq_file *m, void *arg) /* Walk all the zones in a node and print using a callback */ static void walk_zones_in_node(struct seq_file *m, pg_data_t *pgdat, bool nolock, void (*print)(struct seq_file *m, pg_data_t *, struct zone *)) { struct zone *zone; Loading @@ -1132,8 +1133,10 @@ static void walk_zones_in_node(struct seq_file *m, pg_data_t *pgdat, if (!populated_zone(zone)) continue; if (!nolock) spin_lock_irqsave(&zone->lock, flags); print(m, pgdat, zone); if (!nolock) spin_unlock_irqrestore(&zone->lock, flags); } } Loading @@ -1157,7 +1160,7 @@ static void frag_show_print(struct seq_file *m, pg_data_t *pgdat, static int frag_show(struct seq_file *m, void *arg) { pg_data_t *pgdat = (pg_data_t *)arg; walk_zones_in_node(m, pgdat, frag_show_print); walk_zones_in_node(m, pgdat, false, frag_show_print); return 0; } Loading Loading @@ -1198,7 +1201,7 @@ static int pagetypeinfo_showfree(struct seq_file *m, void *arg) seq_printf(m, "%6d ", order); seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, pagetypeinfo_showfree_print); walk_zones_in_node(m, pgdat, false, pagetypeinfo_showfree_print); return 0; } Loading Loading @@ -1250,7 +1253,8 @@ static int pagetypeinfo_showblockcount(struct seq_file *m, void *arg) for (mtype = 0; mtype < MIGRATE_TYPES; mtype++) seq_printf(m, "%12s ", migratetype_names[mtype]); seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, pagetypeinfo_showblockcount_print); walk_zones_in_node(m, pgdat, false, pagetypeinfo_showblockcount_print); return 0; } Loading @@ -1276,7 +1280,8 @@ static void pagetypeinfo_showmixedcount(struct seq_file *m, pg_data_t *pgdat) seq_printf(m, "%12s ", migratetype_names[mtype]); seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, pagetypeinfo_showmixedcount_print); walk_zones_in_node(m, pgdat, true, pagetypeinfo_showmixedcount_print); #endif /* CONFIG_PAGE_OWNER */ } Loading Loading @@ -1433,7 +1438,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, static int zoneinfo_show(struct seq_file *m, void *arg) { pg_data_t *pgdat = (pg_data_t *)arg; walk_zones_in_node(m, pgdat, zoneinfo_show_print); walk_zones_in_node(m, pgdat, false, zoneinfo_show_print); return 0; } Loading Loading @@ -1862,7 +1867,7 @@ static int unusable_show(struct seq_file *m, void *arg) if (!node_state(pgdat->node_id, N_MEMORY)) return 0; walk_zones_in_node(m, pgdat, unusable_show_print); walk_zones_in_node(m, pgdat, false, unusable_show_print); return 0; } Loading Loading @@ -1914,7 +1919,7 @@ static int extfrag_show(struct seq_file *m, void *arg) { pg_data_t *pgdat = (pg_data_t *)arg; walk_zones_in_node(m, pgdat, extfrag_show_print); walk_zones_in_node(m, pgdat, false, extfrag_show_print); return 0; } Loading Loading
mm/page_owner.c +5 −1 Original line number Diff line number Diff line Loading @@ -285,7 +285,11 @@ void pagetypeinfo_showmixedcount_print(struct seq_file *m, continue; if (PageBuddy(page)) { pfn += (1UL << page_order(page)) - 1; unsigned long freepage_order; freepage_order = page_order_unsafe(page); if (freepage_order < MAX_ORDER) pfn += (1UL << freepage_order) - 1; continue; } Loading
mm/vmstat.c +14 −9 Original line number Diff line number Diff line Loading @@ -1122,6 +1122,7 @@ static void frag_stop(struct seq_file *m, void *arg) /* Walk all the zones in a node and print using a callback */ static void walk_zones_in_node(struct seq_file *m, pg_data_t *pgdat, bool nolock, void (*print)(struct seq_file *m, pg_data_t *, struct zone *)) { struct zone *zone; Loading @@ -1132,8 +1133,10 @@ static void walk_zones_in_node(struct seq_file *m, pg_data_t *pgdat, if (!populated_zone(zone)) continue; if (!nolock) spin_lock_irqsave(&zone->lock, flags); print(m, pgdat, zone); if (!nolock) spin_unlock_irqrestore(&zone->lock, flags); } } Loading @@ -1157,7 +1160,7 @@ static void frag_show_print(struct seq_file *m, pg_data_t *pgdat, static int frag_show(struct seq_file *m, void *arg) { pg_data_t *pgdat = (pg_data_t *)arg; walk_zones_in_node(m, pgdat, frag_show_print); walk_zones_in_node(m, pgdat, false, frag_show_print); return 0; } Loading Loading @@ -1198,7 +1201,7 @@ static int pagetypeinfo_showfree(struct seq_file *m, void *arg) seq_printf(m, "%6d ", order); seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, pagetypeinfo_showfree_print); walk_zones_in_node(m, pgdat, false, pagetypeinfo_showfree_print); return 0; } Loading Loading @@ -1250,7 +1253,8 @@ static int pagetypeinfo_showblockcount(struct seq_file *m, void *arg) for (mtype = 0; mtype < MIGRATE_TYPES; mtype++) seq_printf(m, "%12s ", migratetype_names[mtype]); seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, pagetypeinfo_showblockcount_print); walk_zones_in_node(m, pgdat, false, pagetypeinfo_showblockcount_print); return 0; } Loading @@ -1276,7 +1280,8 @@ static void pagetypeinfo_showmixedcount(struct seq_file *m, pg_data_t *pgdat) seq_printf(m, "%12s ", migratetype_names[mtype]); seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, pagetypeinfo_showmixedcount_print); walk_zones_in_node(m, pgdat, true, pagetypeinfo_showmixedcount_print); #endif /* CONFIG_PAGE_OWNER */ } Loading Loading @@ -1433,7 +1438,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, static int zoneinfo_show(struct seq_file *m, void *arg) { pg_data_t *pgdat = (pg_data_t *)arg; walk_zones_in_node(m, pgdat, zoneinfo_show_print); walk_zones_in_node(m, pgdat, false, zoneinfo_show_print); return 0; } Loading Loading @@ -1862,7 +1867,7 @@ static int unusable_show(struct seq_file *m, void *arg) if (!node_state(pgdat->node_id, N_MEMORY)) return 0; walk_zones_in_node(m, pgdat, unusable_show_print); walk_zones_in_node(m, pgdat, false, unusable_show_print); return 0; } Loading Loading @@ -1914,7 +1919,7 @@ static int extfrag_show(struct seq_file *m, void *arg) { pg_data_t *pgdat = (pg_data_t *)arg; walk_zones_in_node(m, pgdat, extfrag_show_print); walk_zones_in_node(m, pgdat, false, extfrag_show_print); return 0; } Loading