The patch titled Subject: kexec: export PG_swapbacked to VMCOREINFO has been added to the -mm tree. Its filename is kexec-export-pg_swapbacked-to-vmcoreinfo.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kexec-export-pg_swapbacked-to-vmcoreinfo.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kexec-export-pg_swapbacked-to-vmcoreinfo.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Petr Tesarik <ptesarik@xxxxxxx> Subject: kexec: export PG_swapbacked to VMCOREINFO Since commit 6326fec1122cd ("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/20180410161345.142e142d@xxxxxxxxxxxxxxx Signed-off-by: Petr Tesarik <ptesarik@xxxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Dave Young <dyoung@xxxxxxxxxx> Cc: Xunlei Pang <xlpang@xxxxxxxxxx> Cc: Baoquan He <bhe@xxxxxxxxxx> Cc: Hari Bathini <hbathini@xxxxxxxxxxxxxxxxxx> Cc: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: "Marc-Andr Lureau" <marcandre.lureau@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/crash_core.c | 1 + 1 file changed, 1 insertion(+) diff -puN kernel/crash_core.c~kexec-export-pg_swapbacked-to-vmcoreinfo kernel/crash_core.c --- a/kernel/crash_core.c~kexec-export-pg_swapbacked-to-vmcoreinfo +++ a/kernel/crash_core.c @@ -454,6 +454,7 @@ static int __init crash_save_vmcoreinfo_ 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); _ Patches currently in -mm which might be from ptesarik@xxxxxxx are kexec-export-pg_swapbacked-to-vmcoreinfo.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html