Home
last modified time | relevance | path

Searched refs:MAX_SWAPFILES (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/mm/
Dfrontswap.c115 DECLARE_BITMAP(a, MAX_SWAPFILES); in frontswap_register_ops()
116 DECLARE_BITMAP(b, MAX_SWAPFILES); in frontswap_register_ops()
120 bitmap_zero(a, MAX_SWAPFILES); in frontswap_register_ops()
121 bitmap_zero(b, MAX_SWAPFILES); in frontswap_register_ops()
131 for_each_set_bit(i, a, MAX_SWAPFILES) in frontswap_register_ops()
158 if (unlikely(!bitmap_equal(a, b, MAX_SWAPFILES))) { in frontswap_register_ops()
159 for (i = 0; i < MAX_SWAPFILES; i++) { in frontswap_register_ops()
Dswap_state.c39 struct address_space *swapper_spaces[MAX_SWAPFILES] __read_mostly;
40 static unsigned int nr_swapper_spaces[MAX_SWAPFILES] __read_mostly;
78 for (i = 0; i < MAX_SWAPFILES; i++) { in total_swapcache_pages()
Dswap_cgroup.c15 static struct swap_cgroup_ctrl swap_cgroup_ctrl[MAX_SWAPFILES];
Dzswap.c187 static struct zswap_tree *zswap_trees[MAX_SWAPFILES];
Dswapfile.c92 struct swap_info_struct *swap_info[MAX_SWAPFILES];
2898 if (type >= MAX_SWAPFILES) { in alloc_swap_info()
/kernel/linux/linux-5.10/include/linux/
Dswap.h67 #define SWP_DEVICE_WRITE (MAX_SWAPFILES+SWP_HWPOISON_NUM+SWP_MIGRATION_NUM)
68 #define SWP_DEVICE_READ (MAX_SWAPFILES+SWP_HWPOISON_NUM+SWP_MIGRATION_NUM+1)
78 #define SWP_MIGRATION_READ (MAX_SWAPFILES + SWP_HWPOISON_NUM)
79 #define SWP_MIGRATION_WRITE (MAX_SWAPFILES + SWP_HWPOISON_NUM + 1)
89 #define SWP_HWPOISON MAX_SWAPFILES
94 #define MAX_SWAPFILES \ macro
Dswapops.h366 return swp_type(entry) >= MAX_SWAPFILES; in non_swap_entry()
/kernel/linux/linux-5.10/kernel/power/
Duser.c361 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()
375 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()