Searched refs:discard_ctl (Results 1 – 10 of 10) sorted by relevance
/kernel/linux/linux-5.10/fs/btrfs/ |
D | discard.c | 71 static struct list_head *get_discard_list(struct btrfs_discard_ctl *discard_ctl, in get_discard_list() argument 74 return &discard_ctl->discard_list[block_group->discard_index]; in get_discard_list() 77 static void __add_to_discard_list(struct btrfs_discard_ctl *discard_ctl, in __add_to_discard_list() argument 80 if (!btrfs_run_discard_work(discard_ctl)) in __add_to_discard_list() 93 get_discard_list(discard_ctl, block_group)); in __add_to_discard_list() 96 static void add_to_discard_list(struct btrfs_discard_ctl *discard_ctl, in add_to_discard_list() argument 102 spin_lock(&discard_ctl->lock); in add_to_discard_list() 103 __add_to_discard_list(discard_ctl, block_group); in add_to_discard_list() 104 spin_unlock(&discard_ctl->lock); in add_to_discard_list() 107 static void add_to_discard_unused_list(struct btrfs_discard_ctl *discard_ctl, in add_to_discard_unused_list() argument [all …]
|
D | discard.h | 21 void btrfs_discard_cancel_work(struct btrfs_discard_ctl *discard_ctl, 23 void btrfs_discard_queue_work(struct btrfs_discard_ctl *discard_ctl, 25 void btrfs_discard_schedule_work(struct btrfs_discard_ctl *discard_ctl, 27 bool btrfs_run_discard_work(struct btrfs_discard_ctl *discard_ctl); 30 void btrfs_discard_calc_delay(struct btrfs_discard_ctl *discard_ctl);
|
D | sysfs.c | 364 atomic64_read(&fs_info->discard_ctl.discardable_bytes)); in btrfs_discardable_bytes_show() 375 atomic_read(&fs_info->discard_ctl.discardable_extents)); in btrfs_discardable_extents_show() 386 fs_info->discard_ctl.discard_bitmap_bytes); in btrfs_discard_bitmap_bytes_show() 397 atomic64_read(&fs_info->discard_ctl.discard_bytes_saved)); in btrfs_discard_bytes_saved_show() 408 fs_info->discard_ctl.discard_extent_bytes); in btrfs_discard_extent_bytes_show() 419 READ_ONCE(fs_info->discard_ctl.iops_limit)); in btrfs_discard_iops_limit_show() 427 struct btrfs_discard_ctl *discard_ctl = &fs_info->discard_ctl; in btrfs_discard_iops_limit_store() local 435 WRITE_ONCE(discard_ctl->iops_limit, iops_limit); in btrfs_discard_iops_limit_store() 449 READ_ONCE(fs_info->discard_ctl.kbps_limit)); in btrfs_discard_kbps_limit_show() 457 struct btrfs_discard_ctl *discard_ctl = &fs_info->discard_ctl; in btrfs_discard_kbps_limit_store() local [all …]
|
D | free-space-cache.c | 2525 btrfs_discard_queue_work(&fs_info->discard_ctl, block_group); in __btrfs_add_free_space() 2849 struct btrfs_discard_ctl *discard_ctl = in btrfs_find_space_for_alloc() local 2850 &block_group->fs_info->discard_ctl; in btrfs_find_space_for_alloc() 2869 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_find_space_for_alloc() 2880 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_find_space_for_alloc() 2939 btrfs_discard_queue_work(&block_group->fs_info->discard_ctl, block_group); in btrfs_return_cluster_to_free_space() 2983 struct btrfs_discard_ctl *discard_ctl = in btrfs_alloc_from_cluster() local 2984 &block_group->fs_info->discard_ctl; in btrfs_alloc_from_cluster() 3048 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_alloc_from_cluster() 3454 struct btrfs_discard_ctl *discard_ctl = in trim_no_bitmap() local [all …]
|
D | block-group.c | 133 btrfs_discard_cancel_work(&cache->fs_info->discard_ctl, in btrfs_put_block_group() 1366 btrfs_discard_cancel_work(&fs_info->discard_ctl, block_group); in btrfs_delete_unused_bgs() 1383 btrfs_discard_queue_work(&fs_info->discard_ctl, in btrfs_delete_unused_bgs() 1441 spin_lock(&fs_info->discard_ctl.lock); in btrfs_delete_unused_bgs() 1443 spin_unlock(&fs_info->discard_ctl.lock); in btrfs_delete_unused_bgs() 1445 btrfs_discard_queue_work(&fs_info->discard_ctl, in btrfs_delete_unused_bgs() 1449 spin_unlock(&fs_info->discard_ctl.lock); in btrfs_delete_unused_bgs() 1989 btrfs_discard_queue_work(&info->discard_ctl, cache); in read_one_block_group()
|
D | disk-io.c | 2015 if (fs_info->discard_ctl.discard_workers) in btrfs_stop_all_workers() 2016 destroy_workqueue(fs_info->discard_ctl.discard_workers); in btrfs_stop_all_workers() 2224 fs_info->discard_ctl.discard_workers = in btrfs_init_workqueues() 2236 fs_info->discard_ctl.discard_workers)) { in btrfs_init_workqueues()
|
D | extent-tree.c | 2853 btrfs_discard_calc_delay(&fs_info->discard_ctl); in btrfs_finish_extent_commit() 2854 btrfs_discard_schedule_work(&fs_info->discard_ctl, true); in btrfs_finish_extent_commit()
|
D | ctree.h | 871 struct btrfs_discard_ctl discard_ctl; member
|
D | scrub.c | 3660 btrfs_discard_queue_work(&fs_info->discard_ctl, in scrub_enumerate_chunks()
|
D | volumes.c | 3096 btrfs_discard_cancel_work(&fs_info->discard_ctl, block_group); in btrfs_relocate_chunk()
|