mm:add KPF_ZERO_PAGE flag for /proc/kpageflags
authorWang, Yalin <Yalin.Wang@sonymobile.com>
Wed, 11 Feb 2015 23:24:51 +0000 (15:24 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Feb 2015 01:06:00 +0000 (17:06 -0800)
commit56873f43abdcd574b25105867a990f067747b2f4
treebe55c69ee61da7b4e10e46c89e62a2ca68adaf81
parent1d148e218a0d0566b1c06f2f45f1436d53b049b2
mm:add KPF_ZERO_PAGE flag for /proc/kpageflags

Add KPF_ZERO_PAGE flag for zero_page, so that userspace processes can
detect zero_page in /proc/kpageflags, and then do memory analysis more
accurately.

Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/pagemap.txt
fs/proc/page.c
include/linux/huge_mm.h
include/uapi/linux/kernel-page-flags.h
mm/huge_memory.c
tools/vm/page-types.c