|
@@ -94,6 +94,7 @@ static const struct file_operations proc_kpagecount_operations = {
|
|
#define KPF_COMPOUND_TAIL 16
|
|
#define KPF_COMPOUND_TAIL 16
|
|
#define KPF_HUGE 17
|
|
#define KPF_HUGE 17
|
|
#define KPF_UNEVICTABLE 18
|
|
#define KPF_UNEVICTABLE 18
|
|
|
|
+#define KPF_HWPOISON 19
|
|
#define KPF_NOPAGE 20
|
|
#define KPF_NOPAGE 20
|
|
|
|
|
|
#define KPF_KSM 21
|
|
#define KPF_KSM 21
|
|
@@ -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_UNEVICTABLE, PG_unevictable);
|
|
u |= kpf_copy_bit(k, KPF_MLOCKED, PG_mlocked);
|
|
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
|
|
#ifdef CONFIG_IA64_UNCACHED_ALLOCATOR
|
|
u |= kpf_copy_bit(k, KPF_UNCACHED, PG_uncached);
|
|
u |= kpf_copy_bit(k, KPF_UNCACHED, PG_uncached);
|
|
#endif
|
|
#endif
|