Searched refs:discard_ctl (Results 1 - 10 of 10) sorted by relevance
/linux-master/fs/btrfs/ |
H A D | discard.c | 70 static struct list_head *get_discard_list(struct btrfs_discard_ctl *discard_ctl, argument 73 return &discard_ctl->discard_list[block_group->discard_index]; 79 * @discard_ctl: discard control 83 static bool btrfs_run_discard_work(struct btrfs_discard_ctl *discard_ctl) argument 85 struct btrfs_fs_info *fs_info = container_of(discard_ctl, 87 discard_ctl); 93 static void __add_to_discard_list(struct btrfs_discard_ctl *discard_ctl, argument 96 lockdep_assert_held(&discard_ctl->lock); 97 if (!btrfs_run_discard_work(discard_ctl)) 112 get_discard_list(discard_ctl, block_grou 115 add_to_discard_list(struct btrfs_discard_ctl *discard_ctl, struct btrfs_block_group *block_group) argument 126 add_to_discard_unused_list(struct btrfs_discard_ctl *discard_ctl, struct btrfs_block_group *block_group) argument 154 remove_from_discard_list(struct btrfs_discard_ctl *discard_ctl, struct btrfs_block_group *block_group) argument 193 find_next_block_group( struct btrfs_discard_ctl *discard_ctl, u64 now) argument 237 peek_discard_list( struct btrfs_discard_ctl *discard_ctl, enum btrfs_discard_state *discard_state, int *discard_index, u64 now) argument 288 struct btrfs_discard_ctl *discard_ctl; local 322 btrfs_update_discard_index(struct btrfs_discard_ctl *discard_ctl, struct btrfs_block_group *block_group) argument 343 btrfs_discard_cancel_work(struct btrfs_discard_ctl *discard_ctl, struct btrfs_block_group *block_group) argument 360 btrfs_discard_queue_work(struct btrfs_discard_ctl *discard_ctl, struct btrfs_block_group *block_group) argument 375 __btrfs_discard_schedule_work(struct btrfs_discard_ctl *discard_ctl, u64 now, bool override) argument 437 btrfs_discard_schedule_work(struct btrfs_discard_ctl *discard_ctl, bool override) argument 458 btrfs_finish_discard_pass(struct btrfs_discard_ctl *discard_ctl, struct btrfs_block_group *block_group) argument 484 struct btrfs_discard_ctl *discard_ctl; local 573 btrfs_discard_calc_delay(struct btrfs_discard_ctl *discard_ctl) argument 639 struct btrfs_discard_ctl *discard_ctl; local 710 btrfs_discard_purge_list(struct btrfs_discard_ctl *discard_ctl) argument 750 struct btrfs_discard_ctl *discard_ctl = &fs_info->discard_ctl; local [all...] |
H A 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, 29 void btrfs_discard_calc_delay(struct btrfs_discard_ctl *discard_ctl);
|
H A D | sysfs.c | 469 atomic64_read(&fs_info->discard_ctl.discardable_bytes)); 480 atomic_read(&fs_info->discard_ctl.discardable_extents)); 491 fs_info->discard_ctl.discard_bitmap_bytes); 502 atomic64_read(&fs_info->discard_ctl.discard_bytes_saved)); 513 fs_info->discard_ctl.discard_extent_bytes); 524 READ_ONCE(fs_info->discard_ctl.iops_limit)); 532 struct btrfs_discard_ctl *discard_ctl = &fs_info->discard_ctl; local 540 WRITE_ONCE(discard_ctl->iops_limit, iops_limit); 541 btrfs_discard_calc_delay(discard_ctl); 563 struct btrfs_discard_ctl *discard_ctl = &fs_info->discard_ctl; local 593 struct btrfs_discard_ctl *discard_ctl = &fs_info->discard_ctl; local [all...] |
H A D | free-space-cache.c | 2686 btrfs_discard_queue_work(&fs_info->discard_ctl, block_group); 3085 struct btrfs_discard_ctl *discard_ctl = local 3086 &block_group->fs_info->discard_ctl; 3109 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); 3120 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); 3178 btrfs_discard_queue_work(&block_group->fs_info->discard_ctl, block_group); 3222 struct btrfs_discard_ctl *discard_ctl = local 3223 &block_group->fs_info->discard_ctl; 3289 atomic64_add(bytes, &discard_ctl->discard_bytes_saved); 3710 struct btrfs_discard_ctl *discard_ctl local 3876 struct btrfs_discard_ctl *discard_ctl = local [all...] |
H A D | block-group.c | 167 btrfs_discard_cancel_work(&cache->fs_info->discard_ctl, 1498 btrfs_discard_cancel_work(&fs_info->discard_ctl, block_group); 1513 btrfs_discard_queue_work(&fs_info->discard_ctl, 1626 spin_lock(&fs_info->discard_ctl.lock); 1628 spin_unlock(&fs_info->discard_ctl.lock); 1630 btrfs_discard_queue_work(&fs_info->discard_ctl, 1634 spin_unlock(&fs_info->discard_ctl.lock); 2391 btrfs_discard_queue_work(&info->discard_ctl, cache);
|
H A D | fs.h | 702 struct btrfs_discard_ctl discard_ctl; member in struct:btrfs_fs_info
|
H A D | disk-io.c | 1799 if (fs_info->discard_ctl.discard_workers) 1800 destroy_workqueue(fs_info->discard_ctl.discard_workers); 2016 fs_info->discard_ctl.discard_workers = 2027 fs_info->discard_ctl.discard_workers)) {
|
H A D | scrub.c | 2721 btrfs_discard_queue_work(&fs_info->discard_ctl,
|
H A D | extent-tree.c | 2909 btrfs_discard_calc_delay(&fs_info->discard_ctl); 2910 btrfs_discard_schedule_work(&fs_info->discard_ctl, true);
|
H A D | volumes.c | 3385 btrfs_discard_cancel_work(&fs_info->discard_ctl, block_group);
|
Completed in 396 milliseconds