SWAPFILE_CLUSTER 345 mm/swapfile.c ci += offset / SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 449 mm/swapfile.c memset(si->swap_map + idx * SWAPFILE_CLUSTER, SWAPFILE_CLUSTER 450 mm/swapfile.c SWAP_MAP_BAD, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 480 mm/swapfile.c discard_swap_cluster(si, idx * SWAPFILE_CLUSTER, SWAPFILE_CLUSTER 481 mm/swapfile.c SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 484 mm/swapfile.c ci = lock_cluster(si, idx * SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 486 mm/swapfile.c memset(si->swap_map + idx * SWAPFILE_CLUSTER, SWAPFILE_CLUSTER 487 mm/swapfile.c 0, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 538 mm/swapfile.c unsigned long idx = page_nr / SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 545 mm/swapfile.c VM_BUG_ON(cluster_count(&cluster_info[idx]) >= SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 558 mm/swapfile.c unsigned long idx = page_nr / SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 582 mm/swapfile.c offset /= SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 613 mm/swapfile.c SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 634 mm/swapfile.c (cluster_next(&cluster->index) + 1) * SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 769 mm/swapfile.c if (si->pages - si->inuse_pages < SWAPFILE_CLUSTER) { SWAPFILE_CLUSTER 770 mm/swapfile.c si->cluster_nr = SWAPFILE_CLUSTER - 1; SWAPFILE_CLUSTER 783 mm/swapfile.c last_in_cluster = offset + SWAPFILE_CLUSTER - 1; SWAPFILE_CLUSTER 788 mm/swapfile.c last_in_cluster = offset + SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 791 mm/swapfile.c offset -= SWAPFILE_CLUSTER - 1; SWAPFILE_CLUSTER 793 mm/swapfile.c si->cluster_nr = SWAPFILE_CLUSTER - 1; SWAPFILE_CLUSTER 804 mm/swapfile.c si->cluster_nr = SWAPFILE_CLUSTER - 1; SWAPFILE_CLUSTER 949 mm/swapfile.c offset = idx * SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 952 mm/swapfile.c cluster_set_count_flag(ci, SWAPFILE_CLUSTER, CLUSTER_FLAG_HUGE); SWAPFILE_CLUSTER 955 mm/swapfile.c for (i = 0; i < SWAPFILE_CLUSTER; i++) SWAPFILE_CLUSTER 958 mm/swapfile.c swap_range_alloc(si, offset, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 966 mm/swapfile.c unsigned long offset = idx * SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 970 mm/swapfile.c memset(si->swap_map + offset, 0, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 974 mm/swapfile.c swap_range_free(si, offset, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 1001 mm/swapfile.c WARN_ON_ONCE(n_goal > 1 && size == SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 1040 mm/swapfile.c if (size == SWAPFILE_CLUSTER) { SWAPFILE_CLUSTER 1047 mm/swapfile.c if (n_ret || size == SWAPFILE_CLUSTER) SWAPFILE_CLUSTER 1328 mm/swapfile.c unsigned long idx = offset / SWAPFILE_CLUSTER; SWAPFILE_CLUSTER 1341 mm/swapfile.c if (size == SWAPFILE_CLUSTER) { SWAPFILE_CLUSTER 1344 mm/swapfile.c for (i = 0; i < SWAPFILE_CLUSTER; i++) { SWAPFILE_CLUSTER 1351 mm/swapfile.c if (free_entries == SWAPFILE_CLUSTER) { SWAPFILE_CLUSTER 1354 mm/swapfile.c mem_cgroup_uncharge_swap(entry, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 1544 mm/swapfile.c unsigned long offset = round_down(roffset, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 1554 mm/swapfile.c for (i = 0; i < SWAPFILE_CLUSTER; i++) { SWAPFILE_CLUSTER 2999 mm/swapfile.c DIV_ROUND_UP(SWAP_ADDRESS_SPACE_PAGES, SWAPFILE_CLUSTER) SWAPFILE_CLUSTER 3013 mm/swapfile.c unsigned long nr_clusters = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); SWAPFILE_CLUSTER 3014 mm/swapfile.c unsigned long col = p->cluster_next / SWAPFILE_CLUSTER % SWAP_CLUSTER_COLS; SWAPFILE_CLUSTER 3038 mm/swapfile.c for (i = maxpages; i < round_up(maxpages, SWAPFILE_CLUSTER); i++) SWAPFILE_CLUSTER 3202 mm/swapfile.c nr_cluster = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER);