Commit:     e6f3602d2c58815775b2a293cec6650622236169
Parent:     a2b345642f530054a92b8d2b5108436225a8093e
Author:     Larry Woodman <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 4 22:29:30 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 09:44:19 2008 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 mm/page_alloc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index d73c133..37576b8 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));
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to