| /fs/btrfs/ |
| A D | free-space-cache.c | 705 ctl->total_bitmaps, ctl->unit, max_bitmaps, in recalculate_thresholds() 720 bitmap_bytes = ctl->total_bitmaps * ctl->unit; in recalculate_thresholds() 2028 entry = tree_search_offset(ctl, offset_to_bitmap(ctl, *offset), in find_free_space() 2280 if (!forced && ctl->free_extents < ctl->extents_thresh) { in use_bitmap() 2289 if (ctl->free_extents * 3 <= ctl->extents_thresh) in use_bitmap() 2328 if (!ctl->op->use_bitmap(ctl, info)) in insert_into_bitmap() 2373 bitmap_info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset), in insert_into_bitmap() 2841 info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset), in btrfs_remove_free_space() 4047 reset_trimming_bitmap(ctl, offset_to_bitmap(ctl, end)); in btrfs_trim_block_group() 4227 bitmap_info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset), in test_add_free_space_entry() [all …]
|
| A D | volumes.c | 5194 ctl->devs_max = min_t(int, ctl->devs_max, in init_alloc_chunk_ctl_policy_zoned() 5329 ctl->num_stripes = ctl->ndevs * ctl->dev_stripes; in decide_stripe_size_regular() 5332 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_regular() 5377 ctl->num_stripes = ctl->ndevs * ctl->dev_stripes; in decide_stripe_size_zoned() 5378 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned() 5382 ctl->ndevs = div_u64(div_u64(ctl->max_chunk_size * ctl->ncopies, in decide_stripe_size_zoned() 5385 ctl->num_stripes = ctl->ndevs * ctl->dev_stripes; in decide_stripe_size_zoned() 5386 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned() 5408 ctl->ndevs = rounddown(ctl->ndevs, ctl->devs_increment); in decide_stripe_size() 5410 if (ctl->ndevs < ctl->devs_min) { in decide_stripe_size() [all …]
|
| A D | discard.c | 651 struct btrfs_free_space_ctl *ctl; in btrfs_discard_update_discardable() local 661 ctl = block_group->free_space_ctl; in btrfs_discard_update_discardable() 664 lockdep_assert_held(&ctl->tree_lock); in btrfs_discard_update_discardable() 665 extents_delta = ctl->discardable_extents[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable() 666 ctl->discardable_extents[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable() 669 ctl->discardable_extents[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable() 670 ctl->discardable_extents[BTRFS_STAT_CURR]; in btrfs_discard_update_discardable() 673 bytes_delta = ctl->discardable_bytes[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable() 674 ctl->discardable_bytes[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable() 677 ctl->discardable_bytes[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable() [all …]
|
| A D | free-space-cache.h | 95 bool (*use_bitmap)(struct btrfs_free_space_ctl *ctl, 135 struct btrfs_free_space_ctl *ctl);
|
| A D | block-group.c | 418 struct btrfs_caching_control *ctl; in btrfs_get_caching_control() local 426 ctl = cache->caching_ctl; in btrfs_get_caching_control() 427 refcount_inc(&ctl->count); in btrfs_get_caching_control() 429 return ctl; in btrfs_get_caching_control() 432 static void btrfs_put_caching_control(struct btrfs_caching_control *ctl) in btrfs_put_caching_control() argument 434 if (refcount_dec_and_test(&ctl->count)) in btrfs_put_caching_control() 435 kfree(ctl); in btrfs_put_caching_control() 1191 struct btrfs_caching_control *ctl; in btrfs_remove_block_group() local 1193 list_for_each_entry(ctl, &fs_info->caching_block_groups, list) { in btrfs_remove_block_group() 1194 if (ctl->block_group == block_group) { in btrfs_remove_block_group() [all …]
|
| A D | extent-tree.c | 3855 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in do_allocation_zoned() local 3998 spin_lock(&ctl->tree_lock); in do_allocation_zoned() 3999 ctl->free_space -= num_bytes; in do_allocation_zoned() 4000 spin_unlock(&ctl->tree_lock); in do_allocation_zoned()
|
| /fs/xfs/ |
| A D | xfs_sysctl.c | 14 const struct ctl_table *ctl, in xfs_stats_clear_proc_handler() argument 20 int ret, *valp = ctl->data; in xfs_stats_clear_proc_handler() 22 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler() 34 const struct ctl_table *ctl, in xfs_panic_mask_proc_handler() argument 40 int ret, *valp = ctl->data; in xfs_panic_mask_proc_handler() 42 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler() 55 const struct ctl_table *ctl, in xfs_deprecated_dointvec_minmax() argument 64 ctl->procname); in xfs_deprecated_dointvec_minmax() 66 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecated_dointvec_minmax()
|
| /fs/btrfs/tests/ |
| A D | free-space-tests.c | 325 static bool test_use_bitmap(struct btrfs_free_space_ctl *ctl, in test_use_bitmap() argument 328 return ctl->free_extents > 0; in test_use_bitmap() 827 static bool bytes_index_use_bitmap(struct btrfs_free_space_ctl *ctl, in bytes_index_use_bitmap() argument 839 struct btrfs_free_space_ctl *ctl = cache->free_space_ctl; in test_bytes_index() local 859 for (node = rb_first_cached(&ctl->free_space_bytes), i = 9; node; in test_bytes_index() 882 for (node = rb_first_cached(&ctl->free_space_bytes), i = 1; node; in test_bytes_index() 939 entry = rb_entry(rb_first_cached(&ctl->free_space_bytes), in test_bytes_index() 964 entry = rb_entry(rb_first_cached(&ctl->free_space_bytes), in test_bytes_index() 979 entry = rb_entry(rb_first_cached(&ctl->free_space_bytes), in test_bytes_index()
|
| /fs/ceph/ |
| A D | inode.c | 1848 if (ctl->folio) { in ceph_readdir_cache_release() 1849 folio_release_kmap(ctl->folio, ctl->dentries); in ceph_readdir_cache_release() 1850 ctl->folio = NULL; in ceph_readdir_cache_release() 1864 if (!ctl->folio || pgoff != ctl->folio->index) { in fill_readdir_cache() 1873 if (IS_ERR(ctl->folio)) { in fill_readdir_cache() 1876 ctl->folio = NULL; in fill_readdir_cache() 1877 ctl->index = -1; in fill_readdir_cache() 1883 ctl->dentries = kmap_local_folio(ctl->folio, 0); in fill_readdir_cache() 1891 ctl->dentries[idx] = dn; in fill_readdir_cache() 1892 ctl->index++; in fill_readdir_cache() [all …]
|
| A D | addr.c | 641 if (ctl) { in get_oldest_context() 643 ctl->i_size = i_size_read(inode); in get_oldest_context() 644 ctl->size_stable = false; in get_oldest_context() 646 ctl->i_size = capsnap->size; in get_oldest_context() 647 ctl->size_stable = true; in get_oldest_context() 651 ctl->head_snapc = false; in get_oldest_context() 667 if (ctl) { in get_oldest_context() 668 ctl->i_size = i_size_read(inode); in get_oldest_context() 670 ctl->truncate_seq = ci->i_truncate_seq; in get_oldest_context() 671 ctl->size_stable = false; in get_oldest_context() [all …]
|
| A D | super.h | 1336 extern void ceph_readdir_cache_release(struct ceph_readdir_cache_control *ctl);
|
| /fs/ocfs2/ |
| A D | dlmglue.c | 3735 struct ocfs2_unblock_ctl *ctl) in ocfs2_unblock_lock() argument 3788 ctl->requeue = 1; in ocfs2_unblock_lock() 3880 if (ctl->unblock_action == UNBLOCK_STOP_POST) { in ocfs2_unblock_lock() 3897 ctl->requeue = 0; in ocfs2_unblock_lock() 3922 ctl->requeue = 1; in ocfs2_unblock_lock() 3936 ctl->requeue = 1; in ocfs2_unblock_lock() 4307 struct ocfs2_unblock_ctl ctl = {0, 0,}; in ocfs2_process_blocked_lock() local 4329 status = ocfs2_unblock_lock(osb, lockres, &ctl); in ocfs2_process_blocked_lock() 4335 if (lockres->l_flags & OCFS2_LOCK_FREEING || !ctl.requeue) { in ocfs2_process_blocked_lock() 4341 str_yes_no(ctl.requeue)); in ocfs2_process_blocked_lock() [all …]
|