Home
last modified time | relevance | path

Searched refs:discard_list (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/fs/btrfs/
Ddiscard.c73 return &discard_ctl->discard_list[block_group->discard_index]; in get_discard_list()
100 if (list_empty(&block_group->discard_list) || in __add_to_discard_list()
108 if (list_empty(&block_group->discard_list)) in __add_to_discard_list()
111 list_move_tail(&block_group->discard_list, in __add_to_discard_list()
133 queued = !list_empty(&block_group->discard_list); in add_to_discard_unused_list()
140 list_del_init(&block_group->discard_list); in add_to_discard_unused_list()
148 list_add_tail(&block_group->discard_list, in add_to_discard_unused_list()
149 &discard_ctl->discard_list[BTRFS_DISCARD_INDEX_UNUSED]); in add_to_discard_unused_list()
168 queued = !list_empty(&block_group->discard_list); in remove_from_discard_list()
169 list_del_init(&block_group->discard_list); in remove_from_discard_list()
[all …]
Dblock-group.h196 struct list_head discard_list; member
Dfs.h321 struct list_head discard_list[BTRFS_NR_DISCARD_LISTS]; member
Dblock-group.c166 if (WARN_ON(!list_empty(&cache->discard_list))) in btrfs_put_block_group()
1629 if (!list_empty(&block_group->discard_list)) { in btrfs_delete_unused_bgs()
2230 INIT_LIST_HEAD(&cache->discard_list); in btrfs_create_block_group_cache()
/linux-6.6.21/fs/ext4/
Dmballoc.c3532 LIST_HEAD(discard_list); in ext4_discard_work()
3537 list_splice_init(&sbi->s_discard_list, &discard_list); in ext4_discard_work()
3541 list_for_each_entry_safe(fd, nfd, &discard_list, efd_list) { in ext4_discard_work()
5859 LIST_HEAD(discard_list); in ext4_mb_discard_lg_preallocations()
5890 list_add(&pa->u.pa_tmp_list, &discard_list); in ext4_mb_discard_lg_preallocations()
5905 list_for_each_entry_safe(pa, tmp, &discard_list, u.pa_tmp_list) { in ext4_mb_discard_lg_preallocations()