thp: account anon transparent huge pages into NR_ANON_PAGES
authorKirill A. Shutemov <[email protected]>
Thu, 12 Sep 2013 22:13:58 +0000 (15:13 -0700)
committerLinus Torvalds <[email protected]>
Thu, 12 Sep 2013 22:38:03 +0000 (15:38 -0700)
commit3cd14fcd3f128d5eba8575491cb4e1999ee1bad2
tree5a2188a3349b339fe1365a13d85ac2a7acd4032b
parent7caef26767c1727d7abfbbbfbe8b2bb473430d48
thp: account anon transparent huge pages into NR_ANON_PAGES

We use NR_ANON_PAGES as base for reporting AnonPages to user.  There's
not much sense in not accounting transparent huge pages there, but add
them on printing to user.

Let's account transparent huge pages in NR_ANON_PAGES in the first place.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Ning Qu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/base/node.c
fs/proc/meminfo.c
mm/huge_memory.c
mm/rmap.c