Home
last modified time | relevance | path

Searched refs:discard_ctl (Results 1 – 10 of 10) sorted by relevance

/fs/btrfs/
Ddiscard.c71 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 …]
Ddiscard.h21 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);
Dsysfs.c364 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 …]
Dfree-space-cache.c2526 btrfs_discard_queue_work(&fs_info->discard_ctl, block_group); in __btrfs_add_free_space()
2850 struct btrfs_discard_ctl *discard_ctl = in btrfs_find_space_for_alloc() local
2851 &block_group->fs_info->discard_ctl; in btrfs_find_space_for_alloc()
2870 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_find_space_for_alloc()
2881 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_find_space_for_alloc()
2940 btrfs_discard_queue_work(&block_group->fs_info->discard_ctl, block_group); in btrfs_return_cluster_to_free_space()
2984 struct btrfs_discard_ctl *discard_ctl = in btrfs_alloc_from_cluster() local
2985 &block_group->fs_info->discard_ctl; in btrfs_alloc_from_cluster()
3049 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); in btrfs_alloc_from_cluster()
3455 struct btrfs_discard_ctl *discard_ctl = in trim_no_bitmap() local
[all …]
Dblock-group.c140 btrfs_discard_cancel_work(&cache->fs_info->discard_ctl, in btrfs_put_block_group()
1373 btrfs_discard_cancel_work(&fs_info->discard_ctl, block_group); in btrfs_delete_unused_bgs()
1390 btrfs_discard_queue_work(&fs_info->discard_ctl, in btrfs_delete_unused_bgs()
1448 spin_lock(&fs_info->discard_ctl.lock); in btrfs_delete_unused_bgs()
1450 spin_unlock(&fs_info->discard_ctl.lock); in btrfs_delete_unused_bgs()
1452 btrfs_discard_queue_work(&fs_info->discard_ctl, in btrfs_delete_unused_bgs()
1456 spin_unlock(&fs_info->discard_ctl.lock); in btrfs_delete_unused_bgs()
1996 btrfs_discard_queue_work(&info->discard_ctl, cache); in read_one_block_group()
Ddisk-io.c2015 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()
Dextent-tree.c2859 btrfs_discard_calc_delay(&fs_info->discard_ctl); in btrfs_finish_extent_commit()
2860 btrfs_discard_schedule_work(&fs_info->discard_ctl, true); in btrfs_finish_extent_commit()
Dctree.h869 struct btrfs_discard_ctl discard_ctl; member
Dscrub.c3667 btrfs_discard_queue_work(&fs_info->discard_ctl, in scrub_enumerate_chunks()
Dvolumes.c3131 btrfs_discard_cancel_work(&fs_info->discard_ctl, block_group); in btrfs_relocate_chunk()