1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_SWAPFILE_H 3 #define _LINUX_SWAPFILE_H 4 5 extern unsigned long generic_max_swapfile_size(void); 6 unsigned long arch_max_swapfile_size(void); 7 8 extern int unuse_swap_pte(struct vm_area_struct *vma, pmd_t *pmd, 9 unsigned long addr, swp_entry_t entry, struct folio *folio); 10 11 /* Maximum swapfile size supported for the arch (not inclusive). */ 12 extern unsigned long swapfile_maximum_size; 13 /* Whether swap migration entry supports storing A/D bits for the arch */ 14 extern bool swap_migration_ad_supported; 15 16 #endif /* _LINUX_SWAPFILE_H */ 17