/fs/btrfs/ |
D | free-space-cache.c | 38 static int link_free_space(struct btrfs_free_space_ctl *ctl, 40 static void unlink_free_space(struct btrfs_free_space_ctl *ctl, 42 static int search_bitmap(struct btrfs_free_space_ctl *ctl, 45 static void free_bitmap(struct btrfs_free_space_ctl *ctl, 47 static void bitmap_clear_bits(struct btrfs_free_space_ctl *ctl, 51 static void __btrfs_remove_free_space_cache(struct btrfs_free_space_ctl *ctl) in __btrfs_remove_free_space_cache() argument 56 while ((node = rb_last(&ctl->free_space_offset)) != NULL) { in __btrfs_remove_free_space_cache() 59 unlink_free_space(ctl, info, true); in __btrfs_remove_free_space_cache() 62 free_bitmap(ctl, info); in __btrfs_remove_free_space_cache() 65 cond_resched_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache() [all …]
|
D | volumes.c | 5135 struct alloc_chunk_ctl *ctl) in init_alloc_chunk_ctl_policy_regular() argument 5139 space_info = btrfs_find_space_info(fs_devices->fs_info, ctl->type); in init_alloc_chunk_ctl_policy_regular() 5142 ctl->max_chunk_size = READ_ONCE(space_info->chunk_size); in init_alloc_chunk_ctl_policy_regular() 5143 ctl->max_stripe_size = min_t(u64, ctl->max_chunk_size, SZ_1G); in init_alloc_chunk_ctl_policy_regular() 5145 if (ctl->type & BTRFS_BLOCK_GROUP_SYSTEM) in init_alloc_chunk_ctl_policy_regular() 5146 ctl->devs_max = min_t(int, ctl->devs_max, BTRFS_MAX_DEVS_SYS_CHUNK); in init_alloc_chunk_ctl_policy_regular() 5149 ctl->max_chunk_size = min(div_factor(fs_devices->total_rw_bytes, 1), in init_alloc_chunk_ctl_policy_regular() 5150 ctl->max_chunk_size); in init_alloc_chunk_ctl_policy_regular() 5151 ctl->dev_extent_min = BTRFS_STRIPE_LEN * ctl->dev_stripes; in init_alloc_chunk_ctl_policy_regular() 5156 struct alloc_chunk_ctl *ctl) in init_alloc_chunk_ctl_policy_zoned() argument [all …]
|
D | discard.c | 621 struct btrfs_free_space_ctl *ctl; in btrfs_discard_update_discardable() local 631 ctl = block_group->free_space_ctl; in btrfs_discard_update_discardable() 634 lockdep_assert_held(&ctl->tree_lock); in btrfs_discard_update_discardable() 635 extents_delta = ctl->discardable_extents[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable() 636 ctl->discardable_extents[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable() 639 ctl->discardable_extents[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable() 640 ctl->discardable_extents[BTRFS_STAT_CURR]; in btrfs_discard_update_discardable() 643 bytes_delta = ctl->discardable_bytes[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable() 644 ctl->discardable_bytes[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable() 647 ctl->discardable_bytes[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable() [all …]
|
D | free-space-cache.h | 65 bool (*use_bitmap)(struct btrfs_free_space_ctl *ctl, 105 struct btrfs_free_space_ctl *ctl);
|
D | block-group.c | 402 struct btrfs_caching_control *ctl; in btrfs_get_caching_control() local 410 ctl = cache->caching_ctl; in btrfs_get_caching_control() 411 refcount_inc(&ctl->count); in btrfs_get_caching_control() 413 return ctl; in btrfs_get_caching_control() 416 void btrfs_put_caching_control(struct btrfs_caching_control *ctl) in btrfs_put_caching_control() argument 418 if (refcount_dec_and_test(&ctl->count)) in btrfs_put_caching_control() 419 kfree(ctl); in btrfs_put_caching_control() 1019 struct btrfs_caching_control *ctl; in btrfs_remove_block_group() local 1021 list_for_each_entry(ctl, &fs_info->caching_block_groups, list) { in btrfs_remove_block_group() 1022 if (ctl->block_group == block_group) { in btrfs_remove_block_group() [all …]
|
D | block-group.h | 293 void btrfs_put_caching_control(struct btrfs_caching_control *ctl);
|
D | extent-tree.c | 3745 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in do_allocation_zoned() local 3886 spin_lock(&ctl->tree_lock); in do_allocation_zoned() 3887 ctl->free_space -= num_bytes; in do_allocation_zoned() 3888 spin_unlock(&ctl->tree_lock); in do_allocation_zoned()
|
/fs/xfs/ |
D | xfs_sysctl.c | 14 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 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 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/ |
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/ |
D | inode.c | 1578 void ceph_readdir_cache_release(struct ceph_readdir_cache_control *ctl) in ceph_readdir_cache_release() argument 1580 if (ctl->page) { in ceph_readdir_cache_release() 1581 kunmap(ctl->page); in ceph_readdir_cache_release() 1582 put_page(ctl->page); in ceph_readdir_cache_release() 1583 ctl->page = NULL; in ceph_readdir_cache_release() 1588 struct ceph_readdir_cache_control *ctl, in fill_readdir_cache() argument 1593 unsigned idx = ctl->index % nsize; in fill_readdir_cache() 1594 pgoff_t pgoff = ctl->index / nsize; in fill_readdir_cache() 1596 if (!ctl->page || pgoff != page_index(ctl->page)) { in fill_readdir_cache() 1597 ceph_readdir_cache_release(ctl); in fill_readdir_cache() [all …]
|
D | addr.c | 514 get_oldest_context(struct inode *inode, struct ceph_writeback_ctl *ctl, in get_oldest_context() argument 532 if (ctl) { in get_oldest_context() 534 ctl->i_size = i_size_read(inode); in get_oldest_context() 535 ctl->size_stable = false; in get_oldest_context() 537 ctl->i_size = capsnap->size; in get_oldest_context() 538 ctl->size_stable = true; in get_oldest_context() 540 ctl->truncate_size = capsnap->truncate_size; in get_oldest_context() 541 ctl->truncate_seq = capsnap->truncate_seq; in get_oldest_context() 542 ctl->head_snapc = false; in get_oldest_context() 558 if (ctl) { in get_oldest_context() [all …]
|
D | super.h | 1297 extern void ceph_readdir_cache_release(struct ceph_readdir_cache_control *ctl);
|
/fs/ocfs2/ |
D | dlmglue.c | 3736 struct ocfs2_unblock_ctl *ctl) in ocfs2_unblock_lock() argument 3789 ctl->requeue = 1; in ocfs2_unblock_lock() 3879 ctl->unblock_action = lockres->l_ops->downconvert_worker(lockres, blocking); in ocfs2_unblock_lock() 3881 if (ctl->unblock_action == UNBLOCK_STOP_POST) { in ocfs2_unblock_lock() 3898 ctl->requeue = 0; in ocfs2_unblock_lock() 3923 ctl->requeue = 1; in ocfs2_unblock_lock() 3937 ctl->requeue = 1; in ocfs2_unblock_lock() 4308 struct ocfs2_unblock_ctl ctl = {0, 0,}; in ocfs2_process_blocked_lock() local 4330 status = ocfs2_unblock_lock(osb, lockres, &ctl); in ocfs2_process_blocked_lock() 4336 if (lockres->l_flags & OCFS2_LOCK_FREEING || !ctl.requeue) { in ocfs2_process_blocked_lock() [all …]
|