Lines Matching refs:discard_list
75 return &discard_ctl->discard_list[block_group->discard_index]; in get_discard_list()
85 if (list_empty(&block_group->discard_list) || in __add_to_discard_list()
93 if (list_empty(&block_group->discard_list)) in __add_to_discard_list()
96 list_move_tail(&block_group->discard_list, in __add_to_discard_list()
118 queued = !list_empty(&block_group->discard_list); in add_to_discard_unused_list()
125 list_del_init(&block_group->discard_list); in add_to_discard_unused_list()
133 list_add_tail(&block_group->discard_list, in add_to_discard_unused_list()
134 &discard_ctl->discard_list[BTRFS_DISCARD_INDEX_UNUSED]); in add_to_discard_unused_list()
153 queued = !list_empty(&block_group->discard_list); in remove_from_discard_list()
154 list_del_init(&block_group->discard_list); in remove_from_discard_list()
186 struct list_head *discard_list = &discard_ctl->discard_list[i]; in find_next_block_group() local
188 if (!list_empty(discard_list)) { in find_next_block_group()
189 block_group = list_first_entry(discard_list, in find_next_block_group()
191 discard_list); in find_next_block_group()
239 list_del_init(&block_group->discard_list); in peek_discard_list()
713 &discard_ctl->discard_list[i], in btrfs_discard_purge_list()
714 discard_list) { in btrfs_discard_purge_list()
715 list_del_init(&block_group->discard_list); in btrfs_discard_purge_list()
752 INIT_LIST_HEAD(&discard_ctl->discard_list[i]); in btrfs_discard_init()