Searched refs:caching_ctl (Results 1 – 5 of 5) sorted by relevance
365 if (!cache->caching_ctl) { in btrfs_get_caching_control()370 ctl = cache->caching_ctl; in btrfs_get_caching_control()398 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_progress() local400 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_progress()401 if (!caching_ctl) in btrfs_wait_block_group_cache_progress()404 wait_event(caching_ctl->wait, btrfs_block_group_cache_done(cache) || in btrfs_wait_block_group_cache_progress()407 btrfs_put_caching_control(caching_ctl); in btrfs_wait_block_group_cache_progress()412 struct btrfs_caching_control *caching_ctl; in btrfs_wait_block_group_cache_done() local415 caching_ctl = btrfs_get_caching_control(cache); in btrfs_wait_block_group_cache_done()416 if (!caching_ctl) in btrfs_wait_block_group_cache_done()[all …]
1398 static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, in load_free_space_bitmaps() argument1414 block_group = caching_ctl->block_group; in load_free_space_bitmaps()1435 caching_ctl->progress = key.objectid; in load_free_space_bitmaps()1448 wake_up(&caching_ctl->wait); in load_free_space_bitmaps()1472 caching_ctl->progress = (u64)-1; in load_free_space_bitmaps()1479 static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, in load_free_space_extents() argument1492 block_group = caching_ctl->block_group; in load_free_space_extents()1513 caching_ctl->progress = key.objectid; in load_free_space_extents()1519 wake_up(&caching_ctl->wait); in load_free_space_extents()1534 caching_ctl->progress = (u64)-1; in load_free_space_extents()[all …]
22 int load_free_space_tree(struct btrfs_caching_control *caching_ctl);
2680 struct btrfs_caching_control *caching_ctl; in __exclude_logged_extent() local2687 caching_ctl = btrfs_get_caching_control(block_group); in __exclude_logged_extent()2689 if (!caching_ctl) { in __exclude_logged_extent()2694 mutex_lock(&caching_ctl->mutex); in __exclude_logged_extent()2696 if (start >= caching_ctl->progress) { in __exclude_logged_extent()2699 } else if (start + num_bytes <= caching_ctl->progress) { in __exclude_logged_extent()2703 num_bytes = caching_ctl->progress - start; in __exclude_logged_extent()2710 caching_ctl->progress; in __exclude_logged_extent()2711 start = caching_ctl->progress; in __exclude_logged_extent()2716 mutex_unlock(&caching_ctl->mutex); in __exclude_logged_extent()[all …]
89 struct btrfs_caching_control *caching_ctl; member