Searched refs:nr_swapfiles (Results 1 – 5 of 5) sorted by relevance
53 static unsigned int nr_swapfiles; variable103 if (type >= READ_ONCE(nr_swapfiles)) in swap_type_to_swap_info()1456 if (nr_swapfiles > 1) in swapcache_free_entries()1812 for (type = 0; type < nr_swapfiles; type++) { in swap_type_of()1836 for (type = 0; type < nr_swapfiles; type++) { in find_first_swap()1874 if ((unsigned int)type < nr_swapfiles) { in count_swap_pages()2277 for (type = 0; type < nr_swapfiles; type++) in drain_mmlist()2879 for (type = 0; type < nr_swapfiles; type++) { in alloc_swap_info()2888 if (type >= nr_swapfiles) { in alloc_swap_info()2897 WRITE_ONCE(nr_swapfiles, nr_swapfiles + 1); in alloc_swap_info()[all …]
1183 atomic_t nr_swapfiles; member
1072 atomic_set(&root->nr_swapfiles, 0); in __setup_root()
792 if (atomic_read(&root->nr_swapfiles)) { in create_snapshot()
10051 atomic_dec(&BTRFS_I(inode)->root->nr_swapfiles); in btrfs_swap_deactivate()10115 atomic_inc(&BTRFS_I(inode)->root->nr_swapfiles); in btrfs_swap_activate()