/fs/btrfs/ |
D | free-space-cache.c | 36 static int count_bitmap_extents(struct btrfs_free_space_ctl *ctl, 38 static int link_free_space(struct btrfs_free_space_ctl *ctl, 40 static void unlink_free_space(struct btrfs_free_space_ctl *ctl, 637 static void merge_space_tree(struct btrfs_free_space_ctl *ctl) in merge_space_tree() argument 643 spin_lock(&ctl->tree_lock); in merge_space_tree() 644 for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { in merge_space_tree() 651 unlink_free_space(ctl, prev); in merge_space_tree() 652 unlink_free_space(ctl, e); in merge_space_tree() 655 link_free_space(ctl, prev); in merge_space_tree() 657 spin_unlock(&ctl->tree_lock); in merge_space_tree() [all …]
|
D | inode-map.c | 33 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in caching_kthread() local 109 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread() 120 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread() 142 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in start_caching() local 177 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching() 254 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in btrfs_unpin_free_ino() local 284 __btrfs_add_free_space(root->fs_info, ctl, in btrfs_unpin_free_ino() 297 static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl) in recalculate_thresholds() argument 304 n = rb_last(&ctl->free_space_offset); in recalculate_thresholds() 306 ctl->extents_thresh = INIT_THRESHOLD; in recalculate_thresholds() [all …]
|
D | discard.c | 579 struct btrfs_free_space_ctl *ctl) in btrfs_discard_update_discardable() argument 592 extents_delta = ctl->discardable_extents[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable() 593 ctl->discardable_extents[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable() 596 ctl->discardable_extents[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable() 597 ctl->discardable_extents[BTRFS_STAT_CURR]; in btrfs_discard_update_discardable() 600 bytes_delta = ctl->discardable_bytes[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable() 601 ctl->discardable_bytes[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable() 604 ctl->discardable_bytes[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable() 605 ctl->discardable_bytes[BTRFS_STAT_CURR]; in btrfs_discard_update_discardable()
|
D | volumes.c | 4943 struct alloc_chunk_ctl *ctl) in init_alloc_chunk_ctl_policy_regular() argument 4945 u64 type = ctl->type; in init_alloc_chunk_ctl_policy_regular() 4948 ctl->max_stripe_size = SZ_1G; in init_alloc_chunk_ctl_policy_regular() 4949 ctl->max_chunk_size = BTRFS_MAX_DATA_CHUNK_SIZE; in init_alloc_chunk_ctl_policy_regular() 4953 ctl->max_stripe_size = SZ_1G; in init_alloc_chunk_ctl_policy_regular() 4955 ctl->max_stripe_size = SZ_256M; in init_alloc_chunk_ctl_policy_regular() 4956 ctl->max_chunk_size = ctl->max_stripe_size; in init_alloc_chunk_ctl_policy_regular() 4958 ctl->max_stripe_size = SZ_32M; in init_alloc_chunk_ctl_policy_regular() 4959 ctl->max_chunk_size = 2 * ctl->max_stripe_size; in init_alloc_chunk_ctl_policy_regular() 4960 ctl->devs_max = min_t(int, ctl->devs_max, in init_alloc_chunk_ctl_policy_regular() [all …]
|
D | free-space-cache.h | 63 void (*recalc_thresholds)(struct btrfs_free_space_ctl *ctl); 64 bool (*use_bitmap)(struct btrfs_free_space_ctl *ctl, 114 struct btrfs_free_space_ctl *ctl, 123 void __btrfs_remove_free_space_cache(struct btrfs_free_space_ctl *ctl);
|
D | block-group.c | 370 struct btrfs_caching_control *ctl; in btrfs_get_caching_control() local 378 ctl = cache->caching_ctl; in btrfs_get_caching_control() 379 refcount_inc(&ctl->count); in btrfs_get_caching_control() 381 return ctl; in btrfs_get_caching_control() 384 void btrfs_put_caching_control(struct btrfs_caching_control *ctl) in btrfs_put_caching_control() argument 386 if (refcount_dec_and_test(&ctl->count)) in btrfs_put_caching_control() 387 kfree(ctl); in btrfs_put_caching_control() 726 struct btrfs_caching_control *ctl; in btrfs_cache_block_group() local 728 ctl = cache->caching_ctl; in btrfs_cache_block_group() 729 refcount_inc(&ctl->count); in btrfs_cache_block_group() [all …]
|
D | discard.h | 32 struct btrfs_free_space_ctl *ctl);
|
D | block-group.h | 242 void btrfs_put_caching_control(struct btrfs_caching_control *ctl);
|
/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_deprecate_irix_sgid_inherit_proc_handler() argument 64 ctl->procname); in xfs_deprecate_irix_sgid_inherit_proc_handler() 66 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_deprecate_irix_sgid_inherit_proc_handler() 71 struct ctl_table *ctl, in xfs_deprecate_irix_symlink_mode_proc_handler() argument [all …]
|
/fs/ceph/ |
D | inode.c | 1544 void ceph_readdir_cache_release(struct ceph_readdir_cache_control *ctl) in ceph_readdir_cache_release() argument 1546 if (ctl->page) { in ceph_readdir_cache_release() 1547 kunmap(ctl->page); in ceph_readdir_cache_release() 1548 put_page(ctl->page); in ceph_readdir_cache_release() 1549 ctl->page = NULL; in ceph_readdir_cache_release() 1554 struct ceph_readdir_cache_control *ctl, in fill_readdir_cache() argument 1559 unsigned idx = ctl->index % nsize; in fill_readdir_cache() 1560 pgoff_t pgoff = ctl->index / nsize; in fill_readdir_cache() 1562 if (!ctl->page || pgoff != page_index(ctl->page)) { in fill_readdir_cache() 1563 ceph_readdir_cache_release(ctl); in fill_readdir_cache() [all …]
|
D | addr.c | 502 get_oldest_context(struct inode *inode, struct ceph_writeback_ctl *ctl, in get_oldest_context() argument 520 if (ctl) { in get_oldest_context() 522 ctl->i_size = i_size_read(inode); in get_oldest_context() 523 ctl->size_stable = false; in get_oldest_context() 525 ctl->i_size = capsnap->size; in get_oldest_context() 526 ctl->size_stable = true; in get_oldest_context() 528 ctl->truncate_size = capsnap->truncate_size; in get_oldest_context() 529 ctl->truncate_seq = capsnap->truncate_seq; in get_oldest_context() 530 ctl->head_snapc = false; in get_oldest_context() 546 if (ctl) { in get_oldest_context() [all …]
|
D | super.h | 1201 extern void ceph_readdir_cache_release(struct ceph_readdir_cache_control *ctl);
|
/fs/ocfs2/ |
D | dlmglue.c | 3729 struct ocfs2_unblock_ctl *ctl) in ocfs2_unblock_lock() argument 3782 ctl->requeue = 1; in ocfs2_unblock_lock() 3872 ctl->unblock_action = lockres->l_ops->downconvert_worker(lockres, blocking); in ocfs2_unblock_lock() 3874 if (ctl->unblock_action == UNBLOCK_STOP_POST) { in ocfs2_unblock_lock() 3891 ctl->requeue = 0; in ocfs2_unblock_lock() 3919 ctl->requeue = 1; in ocfs2_unblock_lock() 4290 struct ocfs2_unblock_ctl ctl = {0, 0,}; in ocfs2_process_blocked_lock() local 4312 status = ocfs2_unblock_lock(osb, lockres, &ctl); in ocfs2_process_blocked_lock() 4318 if (lockres->l_flags & OCFS2_LOCK_FREEING || !ctl.requeue) { in ocfs2_process_blocked_lock() 4324 ctl.requeue ? "yes" : "no"); in ocfs2_process_blocked_lock() [all …]
|
/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()
|