Searched refs:MAX_SWAPFILES (Results 1 – 8 of 8) sorted by relevance
115 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()
39 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()
15 static struct swap_cgroup_ctrl swap_cgroup_ctrl[MAX_SWAPFILES];
187 static struct zswap_tree *zswap_trees[MAX_SWAPFILES];
92 struct swap_info_struct *swap_info[MAX_SWAPFILES];2898 if (type >= MAX_SWAPFILES) { in alloc_swap_info()
67 #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_SWAPFILES94 #define MAX_SWAPFILES \ macro
366 return swp_type(entry) >= MAX_SWAPFILES; in non_swap_entry()
361 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()375 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()