]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/blobdiff - mm/vmstat.c
Merge tag 'balancenuma-v11' of git://git.kernel.org/pub/scm/linux/kernel/git/mel...
[android-sdk/kernel-video.git] / mm / vmstat.c
index c0f1f6db5182ef148ee23926a89cde243b46bab9..9800306c819585885ba4daca3174373909926548 100644 (file)
@@ -811,6 +811,8 @@ const char * const vmstat_text[] = {
        "thp_collapse_alloc",
        "thp_collapse_alloc_failed",
        "thp_split",
+       "thp_zero_page_alloc",
+       "thp_zero_page_alloc_failed",
 #endif
 
 #endif /* CONFIG_VM_EVENTS_COUNTERS */
@@ -940,7 +942,7 @@ static int pagetypeinfo_show(struct seq_file *m, void *arg)
        pg_data_t *pgdat = (pg_data_t *)arg;
 
        /* check memoryless node */
-       if (!node_state(pgdat->node_id, N_HIGH_MEMORY))
+       if (!node_state(pgdat->node_id, N_MEMORY))
                return 0;
 
        seq_printf(m, "Page block order: %d\n", pageblock_order);
@@ -1002,14 +1004,16 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
                   "\n        high     %lu"
                   "\n        scanned  %lu"
                   "\n        spanned  %lu"
-                  "\n        present  %lu",
+                  "\n        present  %lu"
+                  "\n        managed  %lu",
                   zone_page_state(zone, NR_FREE_PAGES),
                   min_wmark_pages(zone),
                   low_wmark_pages(zone),
                   high_wmark_pages(zone),
                   zone->pages_scanned,
                   zone->spanned_pages,
-                  zone->present_pages);
+                  zone->present_pages,
+                  zone->managed_pages);
 
        for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++)
                seq_printf(m, "\n    %-12s %lu", vmstat_text[i],
@@ -1302,7 +1306,7 @@ static int unusable_show(struct seq_file *m, void *arg)
        pg_data_t *pgdat = (pg_data_t *)arg;
 
        /* check memoryless node */
-       if (!node_state(pgdat->node_id, N_HIGH_MEMORY))
+       if (!node_state(pgdat->node_id, N_MEMORY))
                return 0;
 
        walk_zones_in_node(m, pgdat, unusable_show_print);