Searched refs:cluster_next (Results 1 – 2 of 2) sorted by relevance
223 static inline unsigned int cluster_next(struct swap_cluster_info *info) in cluster_next() function276 unsigned int tail = cluster_next(&si->discard_cluster_tail); in swap_cluster_schedule_discard()297 idx = cluster_next(&si->discard_cluster_head); in swap_do_scheduled_discard()300 cluster_next(&info[idx]), 0); in swap_do_scheduled_discard()301 if (cluster_next(&si->discard_cluster_tail) == idx) { in swap_do_scheduled_discard()320 tail = cluster_next(&si->free_cluster_tail); in swap_do_scheduled_discard()353 VM_BUG_ON(cluster_next(&p->free_cluster_head) != idx); in inc_cluster_info_page()355 cluster_next(&cluster_info[idx]), 0); in inc_cluster_info_page()356 if (cluster_next(&p->free_cluster_tail) == idx) { in inc_cluster_info_page()402 unsigned int tail = cluster_next(&p->free_cluster_tail); in dec_cluster_info_page()[all …]
221 unsigned int cluster_next; /* likely index for next allocation */ member