Searched refs:SWAPFILE_CLUSTER (Results 1 – 3 of 3) sorted by relevance
11 atomic_long_t entries[SWAPFILE_CLUSTER];91 VM_WARN_ON_ONCE(off >= SWAPFILE_CLUSTER); in __swap_table_set()101 VM_WARN_ON_ONCE(off >= SWAPFILE_CLUSTER); in __swap_table_xchg()111 VM_WARN_ON_ONCE(off >= SWAPFILE_CLUSTER); in __swap_table_get()
181 unsigned int ci_off = offset % SWAPFILE_CLUSTER; in swap_only_has_cache()414 return cluster_index(si, ci) * SWAPFILE_CLUSTER; in cluster_offset()457 for (ci_off = 0; ci_off < SWAPFILE_CLUSTER; ci_off++) in swap_cluster_free_table()631 discard_swap_cluster(si, idx * SWAPFILE_CLUSTER, in swap_do_scheduled_discard()632 SWAPFILE_CLUSTER); in swap_do_scheduled_discard()697 VM_BUG_ON(!ci->count || ci->count == SWAPFILE_CLUSTER); in partial_free_cluster()722 } else if (ci->count != SWAPFILE_CLUSTER) { in relocate_cluster()741 unsigned long idx = offset / SWAPFILE_CLUSTER; in swap_cluster_setup_bad_slot()755 WARN_ON(ci->count > SWAPFILE_CLUSTER); in swap_cluster_setup_bad_slot()779 swp_tb = swap_table_get(ci, offset % SWAPFILE_CLUSTER); in cluster_reclaim_range()[all …]
12 #define SWAPFILE_CLUSTER HPAGE_PMD_NR macro15 #define SWAPFILE_CLUSTER 256 macro62 return swp_offset(entry) % SWAPFILE_CLUSTER; in swp_cluster_offset()88 return &si->cluster_info[offset / SWAPFILE_CLUSTER]; in __swap_offset_to_cluster()