thp: fix anon memory statistics with transparent hugepages
authorRik van Riel <riel@redhat.com>
Thu, 13 Jan 2011 23:47:13 +0000 (15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:46 +0000 (17:32 -0800)
commit2c888cfbc1b45508a44763d85ba2e8ac43faff5f
tree9a7f2214e5d6a01d5724ae63d4d50cddeb2293ff
parent97562cd243298acf573620c764a1037bd545c9bc
thp: fix anon memory statistics with transparent hugepages

Count each transparent hugepage as HPAGE_PMD_NR pages in the LRU
statistics, so the Active(anon) and Inactive(anon) statistics in
/proc/meminfo are correct.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/huge_mm.h
include/linux/mm_inline.h
mm/huge_memory.c
mm/memcontrol.c
mm/vmscan.c