Skip to content

Commit 1cbf29d

Browse files
Petr Tesariktorvalds
authored andcommitted
kexec: export PG_swapbacked to VMCOREINFO
Since commit 6326fec ("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]>
1 parent 3f05317 commit 1cbf29d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/crash_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ static int __init crash_save_vmcoreinfo_init(void)
454454
VMCOREINFO_NUMBER(PG_lru);
455455
VMCOREINFO_NUMBER(PG_private);
456456
VMCOREINFO_NUMBER(PG_swapcache);
457+
VMCOREINFO_NUMBER(PG_swapbacked);
457458
VMCOREINFO_NUMBER(PG_slab);
458459
#ifdef CONFIG_MEMORY_FAILURE
459460
VMCOREINFO_NUMBER(PG_hwpoison);

0 commit comments

Comments
 (0)