caching_ctl       365 fs/btrfs/block-group.c 	if (!cache->caching_ctl) {
caching_ctl       370 fs/btrfs/block-group.c 	ctl = cache->caching_ctl;
caching_ctl       398 fs/btrfs/block-group.c 	struct btrfs_caching_control *caching_ctl;
caching_ctl       400 fs/btrfs/block-group.c 	caching_ctl = btrfs_get_caching_control(cache);
caching_ctl       401 fs/btrfs/block-group.c 	if (!caching_ctl)
caching_ctl       404 fs/btrfs/block-group.c 	wait_event(caching_ctl->wait, btrfs_block_group_cache_done(cache) ||
caching_ctl       407 fs/btrfs/block-group.c 	btrfs_put_caching_control(caching_ctl);
caching_ctl       412 fs/btrfs/block-group.c 	struct btrfs_caching_control *caching_ctl;
caching_ctl       415 fs/btrfs/block-group.c 	caching_ctl = btrfs_get_caching_control(cache);
caching_ctl       416 fs/btrfs/block-group.c 	if (!caching_ctl)
caching_ctl       419 fs/btrfs/block-group.c 	wait_event(caching_ctl->wait, btrfs_block_group_cache_done(cache));
caching_ctl       422 fs/btrfs/block-group.c 	btrfs_put_caching_control(caching_ctl);
caching_ctl       492 fs/btrfs/block-group.c static int load_extent_tree_free(struct btrfs_caching_control *caching_ctl)
caching_ctl       494 fs/btrfs/block-group.c 	struct btrfs_block_group_cache *block_group = caching_ctl->block_group;
caching_ctl       559 fs/btrfs/block-group.c 					caching_ctl->progress = last;
caching_ctl       562 fs/btrfs/block-group.c 				mutex_unlock(&caching_ctl->mutex);
caching_ctl       564 fs/btrfs/block-group.c 				mutex_lock(&caching_ctl->mutex);
caching_ctl       585 fs/btrfs/block-group.c 				caching_ctl->progress = last;
caching_ctl       612 fs/btrfs/block-group.c 					wake_up(&caching_ctl->wait);
caching_ctl       622 fs/btrfs/block-group.c 	caching_ctl->progress = (u64)-1;
caching_ctl       633 fs/btrfs/block-group.c 	struct btrfs_caching_control *caching_ctl;
caching_ctl       636 fs/btrfs/block-group.c 	caching_ctl = container_of(work, struct btrfs_caching_control, work);
caching_ctl       637 fs/btrfs/block-group.c 	block_group = caching_ctl->block_group;
caching_ctl       640 fs/btrfs/block-group.c 	mutex_lock(&caching_ctl->mutex);
caching_ctl       644 fs/btrfs/block-group.c 		ret = load_free_space_tree(caching_ctl);
caching_ctl       646 fs/btrfs/block-group.c 		ret = load_extent_tree_free(caching_ctl);
caching_ctl       649 fs/btrfs/block-group.c 	block_group->caching_ctl = NULL;
caching_ctl       668 fs/btrfs/block-group.c 	caching_ctl->progress = (u64)-1;
caching_ctl       672 fs/btrfs/block-group.c 	mutex_unlock(&caching_ctl->mutex);
caching_ctl       674 fs/btrfs/block-group.c 	wake_up(&caching_ctl->wait);
caching_ctl       676 fs/btrfs/block-group.c 	btrfs_put_caching_control(caching_ctl);
caching_ctl       685 fs/btrfs/block-group.c 	struct btrfs_caching_control *caching_ctl;
caching_ctl       688 fs/btrfs/block-group.c 	caching_ctl = kzalloc(sizeof(*caching_ctl), GFP_NOFS);
caching_ctl       689 fs/btrfs/block-group.c 	if (!caching_ctl)
caching_ctl       692 fs/btrfs/block-group.c 	INIT_LIST_HEAD(&caching_ctl->list);
caching_ctl       693 fs/btrfs/block-group.c 	mutex_init(&caching_ctl->mutex);
caching_ctl       694 fs/btrfs/block-group.c 	init_waitqueue_head(&caching_ctl->wait);
caching_ctl       695 fs/btrfs/block-group.c 	caching_ctl->block_group = cache;
caching_ctl       696 fs/btrfs/block-group.c 	caching_ctl->progress = cache->key.objectid;
caching_ctl       697 fs/btrfs/block-group.c 	refcount_set(&caching_ctl->count, 1);
caching_ctl       698 fs/btrfs/block-group.c 	btrfs_init_work(&caching_ctl->work, caching_thread, NULL, NULL);
caching_ctl       716 fs/btrfs/block-group.c 		ctl = cache->caching_ctl;
caching_ctl       730 fs/btrfs/block-group.c 		kfree(caching_ctl);
caching_ctl       733 fs/btrfs/block-group.c 	WARN_ON(cache->caching_ctl);
caching_ctl       734 fs/btrfs/block-group.c 	cache->caching_ctl = caching_ctl;
caching_ctl       739 fs/btrfs/block-group.c 		mutex_lock(&caching_ctl->mutex);
caching_ctl       744 fs/btrfs/block-group.c 			cache->caching_ctl = NULL;
caching_ctl       747 fs/btrfs/block-group.c 			caching_ctl->progress = (u64)-1;
caching_ctl       750 fs/btrfs/block-group.c 				cache->caching_ctl = NULL;
caching_ctl       773 fs/btrfs/block-group.c 		mutex_unlock(&caching_ctl->mutex);
caching_ctl       775 fs/btrfs/block-group.c 		wake_up(&caching_ctl->wait);
caching_ctl       777 fs/btrfs/block-group.c 			btrfs_put_caching_control(caching_ctl);
caching_ctl       788 fs/btrfs/block-group.c 			cache->caching_ctl = NULL;
caching_ctl       795 fs/btrfs/block-group.c 		wake_up(&caching_ctl->wait);
caching_ctl       799 fs/btrfs/block-group.c 		btrfs_put_caching_control(caching_ctl);
caching_ctl       804 fs/btrfs/block-group.c 	refcount_inc(&caching_ctl->count);
caching_ctl       805 fs/btrfs/block-group.c 	list_add_tail(&caching_ctl->list, &fs_info->caching_block_groups);
caching_ctl       810 fs/btrfs/block-group.c 	btrfs_queue_work(fs_info->caching_workers, &caching_ctl->work);
caching_ctl       874 fs/btrfs/block-group.c 	struct btrfs_caching_control *caching_ctl = NULL;
caching_ctl      1012 fs/btrfs/block-group.c 		caching_ctl = btrfs_get_caching_control(block_group);
caching_ctl      1017 fs/btrfs/block-group.c 		if (!caching_ctl) {
caching_ctl      1023 fs/btrfs/block-group.c 					caching_ctl = ctl;
caching_ctl      1024 fs/btrfs/block-group.c 					refcount_inc(&caching_ctl->count);
caching_ctl      1028 fs/btrfs/block-group.c 		if (caching_ctl)
caching_ctl      1029 fs/btrfs/block-group.c 			list_del_init(&caching_ctl->list);
caching_ctl      1031 fs/btrfs/block-group.c 		if (caching_ctl) {
caching_ctl      1033 fs/btrfs/block-group.c 			btrfs_put_caching_control(caching_ctl);
caching_ctl      1034 fs/btrfs/block-group.c 			btrfs_put_caching_control(caching_ctl);
caching_ctl      3097 fs/btrfs/block-group.c 	struct btrfs_caching_control *caching_ctl;
caching_ctl      3102 fs/btrfs/block-group.c 		caching_ctl = list_entry(info->caching_block_groups.next,
caching_ctl      3104 fs/btrfs/block-group.c 		list_del(&caching_ctl->list);
caching_ctl      3105 fs/btrfs/block-group.c 		btrfs_put_caching_control(caching_ctl);
caching_ctl        89 fs/btrfs/block-group.h 	struct btrfs_caching_control *caching_ctl;
caching_ctl      2644 fs/btrfs/extent-tree.c 	struct btrfs_caching_control *caching_ctl;
caching_ctl      2651 fs/btrfs/extent-tree.c 	caching_ctl = btrfs_get_caching_control(block_group);
caching_ctl      2653 fs/btrfs/extent-tree.c 	if (!caching_ctl) {
caching_ctl      2658 fs/btrfs/extent-tree.c 		mutex_lock(&caching_ctl->mutex);
caching_ctl      2660 fs/btrfs/extent-tree.c 		if (start >= caching_ctl->progress) {
caching_ctl      2663 fs/btrfs/extent-tree.c 		} else if (start + num_bytes <= caching_ctl->progress) {
caching_ctl      2667 fs/btrfs/extent-tree.c 			num_bytes = caching_ctl->progress - start;
caching_ctl      2674 fs/btrfs/extent-tree.c 				caching_ctl->progress;
caching_ctl      2675 fs/btrfs/extent-tree.c 			start = caching_ctl->progress;
caching_ctl      2680 fs/btrfs/extent-tree.c 		mutex_unlock(&caching_ctl->mutex);
caching_ctl      2681 fs/btrfs/extent-tree.c 		btrfs_put_caching_control(caching_ctl);
caching_ctl      2728 fs/btrfs/extent-tree.c 	struct btrfs_caching_control *caching_ctl;
caching_ctl      2733 fs/btrfs/extent-tree.c 	list_for_each_entry_safe(caching_ctl, next,
caching_ctl      2735 fs/btrfs/extent-tree.c 		cache = caching_ctl->block_group;
caching_ctl      2738 fs/btrfs/extent-tree.c 			list_del_init(&caching_ctl->list);
caching_ctl      2739 fs/btrfs/extent-tree.c 			btrfs_put_caching_control(caching_ctl);
caching_ctl      2741 fs/btrfs/extent-tree.c 			cache->last_byte_to_unpin = caching_ctl->progress;
caching_ctl      1390 fs/btrfs/free-space-tree.c static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl,
caching_ctl      1406 fs/btrfs/free-space-tree.c 	block_group = caching_ctl->block_group;
caching_ctl      1427 fs/btrfs/free-space-tree.c 		caching_ctl->progress = key.objectid;
caching_ctl      1440 fs/btrfs/free-space-tree.c 					wake_up(&caching_ctl->wait);
caching_ctl      1464 fs/btrfs/free-space-tree.c 	caching_ctl->progress = (u64)-1;
caching_ctl      1471 fs/btrfs/free-space-tree.c static int load_free_space_extents(struct btrfs_caching_control *caching_ctl,
caching_ctl      1484 fs/btrfs/free-space-tree.c 	block_group = caching_ctl->block_group;
caching_ctl      1505 fs/btrfs/free-space-tree.c 		caching_ctl->progress = key.objectid;
caching_ctl      1511 fs/btrfs/free-space-tree.c 			wake_up(&caching_ctl->wait);
caching_ctl      1526 fs/btrfs/free-space-tree.c 	caching_ctl->progress = (u64)-1;
caching_ctl      1533 fs/btrfs/free-space-tree.c int load_free_space_tree(struct btrfs_caching_control *caching_ctl)
caching_ctl      1541 fs/btrfs/free-space-tree.c 	block_group = caching_ctl->block_group;
caching_ctl      1569 fs/btrfs/free-space-tree.c 		ret = load_free_space_bitmaps(caching_ctl, path, extent_count);
caching_ctl      1571 fs/btrfs/free-space-tree.c 		ret = load_free_space_extents(caching_ctl, path, extent_count);
caching_ctl        22 fs/btrfs/free-space-tree.h int load_free_space_tree(struct btrfs_caching_control *caching_ctl);