Searched refs:caching_ctl (Results 1 – 5 of 5) sorted by relevance
366 if (!cache->caching_ctl) { in btrfs_get_caching_control()371 ctl = cache->caching_ctl; in btrfs_get_caching_control()399 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_progress() local401 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_progress()402 if (!caching_ctl) in btrfs_wait_block_group_cache_progress()405 wait_event(caching_ctl->wait, btrfs_block_group_done(cache) || in btrfs_wait_block_group_cache_progress()408 btrfs_put_caching_control(caching_ctl); in btrfs_wait_block_group_cache_progress()413 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_done() local416 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_done()417 if (!caching_ctl) in btrfs_wait_block_group_cache_done()[all …]
1391 static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, in load_free_space_bitmaps() argument1407 block_group = caching_ctl->block_group; in load_free_space_bitmaps()1428 caching_ctl->progress = key.objectid; in load_free_space_bitmaps()1441 wake_up(&caching_ctl->wait); in load_free_space_bitmaps()1465 caching_ctl->progress = (u64)-1; in load_free_space_bitmaps()1472 static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, in load_free_space_extents() argument1485 block_group = caching_ctl->block_group; in load_free_space_extents()1506 caching_ctl->progress = key.objectid; in load_free_space_extents()1512 wake_up(&caching_ctl->wait); in load_free_space_extents()1527 caching_ctl->progress = (u64)-1; in load_free_space_extents()[all …]
22 int load_free_space_tree(struct btrfs_caching_control *caching_ctl);
2652 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local2659 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()2661 if (!caching_ctl) { in __exclude_logged_extent()2666 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()2668 if (start >= caching_ctl->progress) { in __exclude_logged_extent()2671 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()2675 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()2682 caching_ctl->progress; in __exclude_logged_extent()2683 start = caching_ctl->progress; in __exclude_logged_extent()2688 mutex_unlock(&caching_ctl->mutex); in __exclude_logged_extent()[all …]
103 struct btrfs_caching_control *caching_ctl; member