diff options
author | Wang, Yalin <Yalin.Wang@sonymobile.com> | 2015-02-11 18:24:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 20:06:00 -0500 |
commit | 56873f43abdcd574b25105867a990f067747b2f4 (patch) | |
tree | be55c69ee61da7b4e10e46c89e62a2ca68adaf81 /Documentation/vm | |
parent | 1d148e218a0d0566b1c06f2f45f1436d53b049b2 (diff) |
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>
Diffstat (limited to 'Documentation/vm')
-rw-r--r-- | Documentation/vm/pagemap.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/vm/pagemap.txt b/Documentation/vm/pagemap.txt index 5948e455c4d2..6fbd55ef6b45 100644 --- a/Documentation/vm/pagemap.txt +++ b/Documentation/vm/pagemap.txt | |||
@@ -62,6 +62,8 @@ There are three components to pagemap: | |||
62 | 20. NOPAGE | 62 | 20. NOPAGE |
63 | 21. KSM | 63 | 21. KSM |
64 | 22. THP | 64 | 22. THP |
65 | 23. BALLOON | ||
66 | 24. ZERO_PAGE | ||
65 | 67 | ||
66 | Short descriptions to the page flags: | 68 | Short descriptions to the page flags: |
67 | 69 | ||
@@ -102,6 +104,12 @@ Short descriptions to the page flags: | |||
102 | 22. THP | 104 | 22. THP |
103 | contiguous pages which construct transparent hugepages | 105 | contiguous pages which construct transparent hugepages |
104 | 106 | ||
107 | 23. BALLOON | ||
108 | balloon compaction page | ||
109 | |||
110 | 24. ZERO_PAGE | ||
111 | zero page for pfn_zero or huge_zero page | ||
112 | |||
105 | [IO related page flags] | 113 | [IO related page flags] |
106 | 1. ERROR IO error occurred | 114 | 1. ERROR IO error occurred |
107 | 3. UPTODATE page has up-to-date data | 115 | 3. UPTODATE page has up-to-date data |