Annotate vital static information into kmemdump: - nr_swapfiles Information on these variables is stored into dedicated kmemdump section.
Signed-off-by: Eugen Hristev <eugen.hris...@linaro.org> --- mm/swapfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/swapfile.c b/mm/swapfile.c index b4f3cc712580..ac5a2307a278 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -42,6 +42,7 @@ #include <linux/suspend.h> #include <linux/zswap.h> #include <linux/plist.h> +#include <linux/kmemdump.h> #include <asm/tlbflush.h> #include <linux/swapops.h> @@ -64,6 +65,7 @@ static inline void unlock_cluster(struct swap_cluster_info *ci); static DEFINE_SPINLOCK(swap_lock); static unsigned int nr_swapfiles; +KMEMDUMP_VAR_CORE(nr_swapfiles, sizeof(nr_swapfiles)); atomic_long_t nr_swap_pages; /* * Some modules use swappable objects and may try to swap them out under -- 2.43.0