kexec: export PG_swapbacked to VMCOREINFO
authorPetr Tesarik <[email protected]>
Fri, 13 Apr 2018 22:35:34 +0000 (15:35 -0700)
committerLinus Torvalds <[email protected]>
Sat, 14 Apr 2018 00:10:27 +0000 (17:10 -0700)
Since commit 6326fec1122c ("mm: Use owner_priv bit for PageSwapCache,
valid when PageSwapBacked"), 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.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Petr Tesarik <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Dave Young <[email protected]>
Cc: Xunlei Pang <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Hari Bathini <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: "Marc-Andr Lureau" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/crash_core.c

index a93590cdd9e16bc40a2575772f982bfd65f3e32c..f7674d676889b45401f4a55e5193c3284fd7d85e 100644 (file)
@@ -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);