Skip to contentSkip to conversation

kexec: export PG_swapbacked to VMCOREINFO

PATCH New Petr Tesarik 1 participant 1 message Apr 10, 2018 Kdump

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec: export PG_swapbacked to VMCOREINFO

Since commit 6326fec1122cde256bd2a8c63f2606e08e44ce1d PG_swapcache is an alias for PG_owner_priv_1, which may be also used for other purposes. To know whether the bit indeed has the PG_swapcache meaning, it is necessary to check PG_swapbacked, hence this bit must be exported.

---
 kernel/crash_core.c | 1 +
 1 file changed, 1 insertion(+)
kernel/crash_core.c +1 -0
index a93590cdd9e1..f7674d676889 100644
@@ -454,6 +454,7 @@ static int __init crash_save_vmcoreinfo_init(void)
 	VMCOREINFO_NUMBER(PG_lru);
 	VMCOREINFO_NUMBER(PG_private);
 	VMCOREINFO_NUMBER(PG_swapcache);
+	VMCOREINFO_NUMBER(PG_swapbacked);
 	VMCOREINFO_NUMBER(PG_slab);
 #ifdef CONFIG_MEMORY_FAILURE
 	VMCOREINFO_NUMBER(PG_hwpoison);
Signature · 1 line
2.13.6