[PATCH] zoned vm counters: conversion of nr_dirty to per zone counter
[deliverable/linux.git] / fs / proc / proc_misc.c
index 16aaf7187bb3225ff50027638847605f1ca40f02..e23717dec3c1b203a4da49e12f3612ddbefc71a2 100644 (file)
@@ -171,9 +171,9 @@ static int meminfo_read_proc(char *page, char **start, off_t off,
                "AnonPages:    %8lu kB\n"
                "Mapped:       %8lu kB\n"
                "Slab:         %8lu kB\n"
+               "PageTables:   %8lu kB\n"
                "CommitLimit:  %8lu kB\n"
                "Committed_AS: %8lu kB\n"
-               "PageTables:   %8lu kB\n"
                "VmallocTotal: %8lu kB\n"
                "VmallocUsed:  %8lu kB\n"
                "VmallocChunk: %8lu kB\n",
@@ -190,14 +190,14 @@ static int meminfo_read_proc(char *page, char **start, off_t off,
                K(i.freeram-i.freehigh),
                K(i.totalswap),
                K(i.freeswap),
-               K(ps.nr_dirty),
+               K(global_page_state(NR_FILE_DIRTY)),
                K(ps.nr_writeback),
                K(global_page_state(NR_ANON_PAGES)),
                K(global_page_state(NR_FILE_MAPPED)),
                K(global_page_state(NR_SLAB)),
+               K(global_page_state(NR_PAGETABLE)),
                K(allowed),
                K(committed),
-               K(ps.nr_page_table_pages),
                (unsigned long)VMALLOC_TOTAL >> 10,
                vmi.used >> 10,
                vmi.largest_chunk >> 10
This page took 0.025272 seconds and 5 git commands to generate.