Searched refs:ctl (Results 1 – 10 of 10) sorted by relevance
/fs/btrfs/ |
D | free-space-cache.c | 41 static int link_free_space(struct btrfs_free_space_ctl *ctl, 43 static void unlink_free_space(struct btrfs_free_space_ctl *ctl, 645 static void merge_space_tree(struct btrfs_free_space_ctl *ctl) in merge_space_tree() argument 651 spin_lock(&ctl->tree_lock); in merge_space_tree() 652 for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { in merge_space_tree() 659 unlink_free_space(ctl, prev); in merge_space_tree() 660 unlink_free_space(ctl, e); in merge_space_tree() 663 link_free_space(ctl, prev); in merge_space_tree() 665 spin_unlock(&ctl->tree_lock); in merge_space_tree() 671 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 107 __btrfs_add_free_space(ctl, last + 1, in caching_kthread() 118 __btrfs_add_free_space(ctl, last + 1, in caching_kthread() 139 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in start_caching() local 174 __btrfs_add_free_space(ctl, objectid, in start_caching() 248 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in btrfs_unpin_free_ino() local 281 __btrfs_add_free_space(ctl, info->offset, count); in btrfs_unpin_free_ino() 293 static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl) in recalculate_thresholds() argument 300 n = rb_last(&ctl->free_space_offset); in recalculate_thresholds() 302 ctl->extents_thresh = INIT_THRESHOLD; in recalculate_thresholds() [all …]
|
D | free-space-cache.h | 47 void (*recalc_thresholds)(struct btrfs_free_space_ctl *ctl); 48 bool (*use_bitmap)(struct btrfs_free_space_ctl *ctl, 92 int __btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, 103 void __btrfs_remove_free_space_cache(struct btrfs_free_space_ctl *ctl);
|
D | extent-tree.c | 314 struct btrfs_caching_control *ctl; in get_caching_control() local 322 ctl = cache->caching_ctl; in get_caching_control() 323 atomic_inc(&ctl->count); in get_caching_control() 325 return ctl; in get_caching_control() 328 static void put_caching_control(struct btrfs_caching_control *ctl) in put_caching_control() argument 330 if (atomic_dec_and_test(&ctl->count)) in put_caching_control() 331 kfree(ctl); in put_caching_control() 613 struct btrfs_caching_control *ctl; in cache_block_group() local 615 ctl = cache->caching_ctl; in cache_block_group() 616 atomic_inc(&ctl->count); in cache_block_group() [all …]
|
/fs/ncpfs/ |
D | dir.c | 424 struct ncp_cache_control ctl; in ncp_readdir() local 428 ctl.page = NULL; in ncp_readdir() 429 ctl.cache = NULL; in ncp_readdir() 446 ctl.cache = cache = kmap(page); in ncp_readdir() 447 ctl.head = cache->head; in ncp_readdir() 449 if (!PageUptodate(page) || !ctl.head.eof) in ncp_readdir() 453 if (jiffies - ctl.head.time >= NCP_MAX_AGE(server)) in ncp_readdir() 458 if ((!mtime) || (mtime != ctl.head.mtime)) in ncp_readdir() 462 if (ctx->pos > ctl.head.end) in ncp_readdir() 465 ctl.fpos = ctx->pos + (NCP_DIRCACHE_START - 2); in ncp_readdir() [all …]
|
/fs/xfs/ |
D | xfs_sysctl.c | 29 struct ctl_table *ctl, in xfs_stats_clear_proc_handler() argument 35 int ret, *valp = ctl->data; in xfs_stats_clear_proc_handler() 37 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler() 49 struct ctl_table *ctl, in xfs_panic_mask_proc_handler() argument 55 int ret, *valp = ctl->data; in xfs_panic_mask_proc_handler() 57 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler()
|
/fs/ceph/ |
D | inode.c | 1346 void ceph_readdir_cache_release(struct ceph_readdir_cache_control *ctl) in ceph_readdir_cache_release() argument 1348 if (ctl->page) { in ceph_readdir_cache_release() 1349 kunmap(ctl->page); in ceph_readdir_cache_release() 1350 page_cache_release(ctl->page); in ceph_readdir_cache_release() 1351 ctl->page = NULL; in ceph_readdir_cache_release() 1356 struct ceph_readdir_cache_control *ctl, in fill_readdir_cache() argument 1361 unsigned idx = ctl->index % nsize; in fill_readdir_cache() 1362 pgoff_t pgoff = ctl->index / nsize; in fill_readdir_cache() 1364 if (!ctl->page || pgoff != page_index(ctl->page)) { in fill_readdir_cache() 1365 ceph_readdir_cache_release(ctl); in fill_readdir_cache() [all …]
|
D | super.h | 956 extern void ceph_readdir_cache_release(struct ceph_readdir_cache_control *ctl);
|
/fs/btrfs/tests/ |
D | free-space-tests.c | 376 static bool test_use_bitmap(struct btrfs_free_space_ctl *ctl, in test_use_bitmap() argument 379 return ctl->free_extents > 0; in test_use_bitmap()
|
/fs/ocfs2/ |
D | dlmglue.c | 3503 struct ocfs2_unblock_ctl *ctl) in ocfs2_unblock_lock() argument 3556 ctl->requeue = 1; in ocfs2_unblock_lock() 3646 ctl->unblock_action = lockres->l_ops->downconvert_worker(lockres, blocking); in ocfs2_unblock_lock() 3648 if (ctl->unblock_action == UNBLOCK_STOP_POST) { in ocfs2_unblock_lock() 3665 ctl->requeue = 0; in ocfs2_unblock_lock() 3693 ctl->requeue = 1; in ocfs2_unblock_lock() 4061 struct ocfs2_unblock_ctl ctl = {0, 0,}; in ocfs2_process_blocked_lock() local 4083 status = ocfs2_unblock_lock(osb, lockres, &ctl); in ocfs2_process_blocked_lock() 4089 if (lockres->l_flags & OCFS2_LOCK_FREEING || !ctl.requeue) { in ocfs2_process_blocked_lock() 4095 ctl.requeue ? "yes" : "no"); in ocfs2_process_blocked_lock() [all …]
|