Lines Matching refs:list
398 static inline bool cluster_list_empty(struct swap_cluster_list *list) in cluster_list_empty() argument
400 return cluster_is_null(&list->head); in cluster_list_empty()
403 static inline unsigned int cluster_list_first(struct swap_cluster_list *list) in cluster_list_first() argument
405 return cluster_next(&list->head); in cluster_list_first()
408 static void cluster_list_init(struct swap_cluster_list *list) in cluster_list_init() argument
410 cluster_set_null(&list->head); in cluster_list_init()
411 cluster_set_null(&list->tail); in cluster_list_init()
414 static void cluster_list_add_tail(struct swap_cluster_list *list, in cluster_list_add_tail() argument
418 if (cluster_list_empty(list)) { in cluster_list_add_tail()
419 cluster_set_next_flag(&list->head, idx, 0); in cluster_list_add_tail()
420 cluster_set_next_flag(&list->tail, idx, 0); in cluster_list_add_tail()
423 unsigned int tail = cluster_next(&list->tail); in cluster_list_add_tail()
433 cluster_set_next_flag(&list->tail, idx, 0); in cluster_list_add_tail()
437 static unsigned int cluster_list_del_first(struct swap_cluster_list *list, in cluster_list_del_first() argument
442 idx = cluster_next(&list->head); in cluster_list_del_first()
443 if (cluster_next(&list->tail) == idx) { in cluster_list_del_first()
444 cluster_set_null(&list->head); in cluster_list_del_first()
445 cluster_set_null(&list->tail); in cluster_list_del_first()
447 cluster_set_next_flag(&list->head, in cluster_list_del_first()
2511 p->list.prio = -p->prio; in setup_swap_info()
2547 plist_add(&p->list, &swap_active_head); in _enable_swap_info()
2625 plist_for_each_entry(p, &swap_active_head, list) { in SYSCALL_DEFINE1()
2651 plist_for_each_entry_continue(si, &swap_active_head, list) { in SYSCALL_DEFINE1()
2653 si->list.prio--; in SYSCALL_DEFINE1()
2661 plist_del(&p->list, &swap_active_head); in SYSCALL_DEFINE1()
2960 plist_node_init(&p->list, 0); in alloc_swap_info()