From 99ce98e66d67ecadc6a73791aa425d76155a9f59 Mon Sep 17 00:00:00 2001 From: Peter Xu Date: Sun, 4 Sep 2022 13:31:38 -0400 Subject: [PATCH] fixup! mm/swap: cache maximum swapfile size when init swap Content-type: text/plain Signed-off-by: Peter Xu --- include/linux/swapfile.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/swapfile.h b/include/linux/swapfile.h index 75fc069594a5..29182dfc0cc7 100644 --- a/include/linux/swapfile.h +++ b/include/linux/swapfile.h @@ -10,6 +10,7 @@ extern spinlock_t swap_lock; extern struct plist_head swap_active_head; extern struct swap_info_struct *swap_info[]; extern unsigned long generic_max_swapfile_size(void); +extern unsigned long arch_max_swapfile_size(void); /* Maximum swapfile size supported for the arch (not inclusive). */ extern unsigned long swapfile_maximum_size; /* Whether swap migration entry supports storing A/D bits for the arch */ -- 2.32.0