aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorLarry Woodman <lwoodman@redhat.com>2008-02-05 01:29:30 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:19 -0500
commite6f3602d2c58815775b2a293cec6650622236169 (patch)
tree84721b0074e745474c7e71f53d58b6211cf30c40 /mm/page_alloc.c
parenta2b345642f530054a92b8d2b5108436225a8093e (diff)
Include count of pagecache pages in show_mem() output
The show_mem() output does not include the total number of pagecache pages. This would be helpful when analyzing the debug information in the /var/log/messages file after OOM kills occur. This patch includes the total pagecache pages in that output. Signed-off-by: Larry Woodman <lwoodman@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index d73c133fdbe1..37576b822f06 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1874,6 +1874,8 @@ void show_free_areas(void)
1874 printk("= %lukB\n", K(total)); 1874 printk("= %lukB\n", K(total));
1875 } 1875 }
1876 1876
1877 printk("%ld total pagecache pages\n", global_page_state(NR_FILE_PAGES));
1878
1877 show_swap_cache_info(); 1879 show_swap_cache_info();
1878} 1880}
1879 1881