Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166937
b: refs/heads/master
c: 253fb02
h: refs/heads/master
i:
  166935: 8b77c4d
v: v3
  • Loading branch information
Wu Fengguang authored and Linus Torvalds committed Oct 8, 2009
1 parent e1b4f85 commit 0ddebe2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7823da36ce8e42d66941887eb922768d259763f2
refs/heads/master: 253fb02d62571e5455eedc9e39b9d660e86a40f0
2 changes: 2 additions & 0 deletions trunk/Documentation/vm/page-types.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
#define KPF_COMPOUND_TAIL 16
#define KPF_HUGE 17
#define KPF_UNEVICTABLE 18
#define KPF_HWPOISON 19
#define KPF_NOPAGE 20

/* [32-] kernel hacking assistances */
Expand Down Expand Up @@ -116,6 +117,7 @@ static char *page_flag_names[] = {
[KPF_COMPOUND_TAIL] = "T:compound_tail",
[KPF_HUGE] = "G:huge",
[KPF_UNEVICTABLE] = "u:unevictable",
[KPF_HWPOISON] = "X:hwpoison",
[KPF_NOPAGE] = "n:nopage",

[KPF_RESERVED] = "r:reserved",
Expand Down
4 changes: 4 additions & 0 deletions trunk/Documentation/vm/pagemap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ There are three components to pagemap:
16. COMPOUND_TAIL
16. HUGE
18. UNEVICTABLE
19. HWPOISON
20. NOPAGE

Short descriptions to the page flags:
Expand Down Expand Up @@ -86,6 +87,9 @@ Short descriptions to the page flags:
17. HUGE
this is an integral part of a HugeTLB page

19. HWPOISON
hardware detected memory corruption on this page: don't touch the data!

20. NOPAGE
no page frame exists at the requested address

Expand Down
5 changes: 5 additions & 0 deletions trunk/fs/proc/page.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ static const struct file_operations proc_kpagecount_operations = {
#define KPF_COMPOUND_TAIL 16
#define KPF_HUGE 17
#define KPF_UNEVICTABLE 18
#define KPF_HWPOISON 19
#define KPF_NOPAGE 20

#define KPF_KSM 21
Expand Down Expand Up @@ -180,6 +181,10 @@ static u64 get_uflags(struct page *page)
u |= kpf_copy_bit(k, KPF_UNEVICTABLE, PG_unevictable);
u |= kpf_copy_bit(k, KPF_MLOCKED, PG_mlocked);

#ifdef CONFIG_MEMORY_FAILURE
u |= kpf_copy_bit(k, KPF_HWPOISON, PG_hwpoison);
#endif

#ifdef CONFIG_IA64_UNCACHED_ALLOCATOR
u |= kpf_copy_bit(k, KPF_UNCACHED, PG_uncached);
#endif
Expand Down

0 comments on commit 0ddebe2

Please sign in to comment.