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()
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()
433 return cluster_index(si, ci) * SWAPFILE_CLUSTER; in cluster_offset()476 for (ci_off = 0; ci_off < SWAPFILE_CLUSTER; ci_off++) in swap_cluster_free_table()650 discard_swap_cluster(si, idx * SWAPFILE_CLUSTER, in swap_do_scheduled_discard()651 SWAPFILE_CLUSTER); in swap_do_scheduled_discard()716 VM_BUG_ON(!ci->count || ci->count == SWAPFILE_CLUSTER); in partial_free_cluster()741 } else if (ci->count != SWAPFILE_CLUSTER) { in relocate_cluster()760 unsigned long idx = offset / SWAPFILE_CLUSTER; in swap_cluster_setup_bad_slot()774 WARN_ON(ci->count > SWAPFILE_CLUSTER); in swap_cluster_setup_bad_slot()854 unsigned int ci_off = start % SWAPFILE_CLUSTER; in swap_cluster_assert_table_empty()900 unsigned long start = ALIGN_DOWN(offset, SWAPFILE_CLUSTER); in alloc_swap_scan_cluster()[all …]