Lines Matching refs:discard_ctl
2673 btrfs_discard_queue_work(&fs_info->discard_ctl, block_group); in __btrfs_add_free_space()
3072 struct btrfs_discard_ctl *discard_ctl = in btrfs_find_space_for_alloc() local
3073 &block_group->fs_info->discard_ctl; in btrfs_find_space_for_alloc()
3096 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_find_space_for_alloc()
3107 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_find_space_for_alloc()
3165 btrfs_discard_queue_work(&block_group->fs_info->discard_ctl, block_group); in btrfs_return_cluster_to_free_space()
3209 struct btrfs_discard_ctl *discard_ctl = in btrfs_alloc_from_cluster() local
3210 &block_group->fs_info->discard_ctl; in btrfs_alloc_from_cluster()
3276 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_alloc_from_cluster()
3695 struct btrfs_discard_ctl *discard_ctl = in trim_no_bitmap() local
3696 &block_group->fs_info->discard_ctl; in trim_no_bitmap()
3705 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap()
3861 struct btrfs_discard_ctl *discard_ctl = in trim_bitmaps() local
3862 &block_group->fs_info->discard_ctl; in trim_bitmaps()
3869 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_bitmaps()