summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLarry Woodman <lwoodman@redhat.com>2008-02-05 07:29:30 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 18:44:19 +0100
commite6f3602d2c58815775b2a293cec6650622236169 (patch)
tree84721b0074e745474c7e71f53d58b6211cf30c40 /mm
parentFix dirty page accounting leak with ext3 data=journal (diff)
downloadlinux-e6f3602d2c58815775b2a293cec6650622236169.tar.xz
linux-e6f3602d2c58815775b2a293cec6650622236169.zip
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')
-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)
printk("= %lukB\n", K(total));
}
+ printk("%ld total pagecache pages\n", global_page_state(NR_FILE_PAGES));
+
show_swap_cache_info();
}