Searched refs:caching_ctl (Results 1 – 6 of 6) 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 …]
1399 static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, in load_free_space_bitmaps() argument1415 block_group = caching_ctl->block_group; in load_free_space_bitmaps()1436 caching_ctl->progress = key.objectid; in load_free_space_bitmaps()1449 wake_up(&caching_ctl->wait); in load_free_space_bitmaps()1473 caching_ctl->progress = (u64)-1; in load_free_space_bitmaps()1480 static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, in load_free_space_extents() argument1493 block_group = caching_ctl->block_group; in load_free_space_extents()1514 caching_ctl->progress = key.objectid; in load_free_space_extents()1520 wake_up(&caching_ctl->wait); in load_free_space_extents()1535 caching_ctl->progress = (u64)-1; in load_free_space_extents()[all …]
22 int load_free_space_tree(struct btrfs_caching_control *caching_ctl);
103 struct btrfs_caching_control *caching_ctl; member
158 struct btrfs_caching_control *caching_ctl, *next; in switch_commit_roots() local211 list_for_each_entry_safe(caching_ctl, next, in switch_commit_roots()213 struct btrfs_block_group *cache = caching_ctl->block_group; in switch_commit_roots()217 list_del_init(&caching_ctl->list); in switch_commit_roots()218 btrfs_put_caching_control(caching_ctl); in switch_commit_roots()220 cache->last_byte_to_unpin = caching_ctl->progress; in switch_commit_roots()
2608 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local2615 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()2617 if (!caching_ctl) { in __exclude_logged_extent()2622 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()2624 if (start >= caching_ctl->progress) { in __exclude_logged_extent()2627 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()2631 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()2638 caching_ctl->progress; in __exclude_logged_extent()2639 start = caching_ctl->progress; in __exclude_logged_extent()2644 mutex_unlock(&caching_ctl->mutex); in __exclude_logged_extent()[all …]