Searched refs:ci_off (Results 1 – 3 of 3) sorted by relevance
| /linux/mm/ |
| H A D | swap_state.c | 167 unsigned int ci_off, ci_end; in __swap_cache_add_check() local 180 ci_off = swp_cluster_offset(targ_entry); in __swap_cache_add_check() 181 old_tb = __swap_table_get(ci, ci_off); in __swap_cache_add_check() 189 *memcg_id = __swap_cgroup_get(ci, ci_off); in __swap_cache_add_check() 194 is_zero = __swap_table_test_zero(ci, ci_off); in __swap_cache_add_check() 195 ci_off = round_down(ci_off, nr); in __swap_cache_add_check() 196 ci_end = ci_off + nr; in __swap_cache_add_check() 198 old_tb = __swap_table_get(ci, ci_off); in __swap_cache_add_check() 201 is_zero != __swap_table_test_zero(ci, ci_off) || in __swap_cache_add_check() 202 (memcg_id && *memcg_id != __swap_cgroup_get(ci, ci_off)))) in __swap_cache_add_check() [all …]
|
| H A D | swapfile.c | 179 unsigned int ci_off = offset % SWAPFILE_CLUSTER; in swap_only_has_cache() local 180 unsigned int ci_end = ci_off + nr_pages; in swap_only_has_cache() 184 swp_tb = __swap_table_get(ci, ci_off); in swap_only_has_cache() 188 } while (++ci_off < ci_end); in swap_only_has_cache() 499 unsigned int ci_off, unsigned int nr, in swap_cluster_assert_empty() argument 502 unsigned int ci_end = ci_off + nr; in swap_cluster_assert_empty() 510 swp_tb = __swap_table_get(ci, ci_off); in swap_cluster_assert_empty() 515 WARN_ON_ONCE(__swap_cgroup_get(ci, ci_off)); in swap_cluster_assert_empty() 516 } while (++ci_off < ci_end); in swap_cluster_assert_empty() 791 unsigned int ci_off = offset % SWAPFILE_CLUSTER; in swap_cluster_setup_bad_slot() local [all …]
|
| H A D | swap.h | 253 unsigned int ci_off, unsigned int nr_pages);
|