Lines Matching refs:cluster
6258 struct btrfs_free_cluster *cluster = NULL; in unpin_extent_range() local
6274 cluster = fetch_cluster_info(root, in unpin_extent_range()
6299 if (cluster && cluster->fragmented && in unpin_extent_range()
6301 spin_lock(&cluster->lock); in unpin_extent_range()
6302 cluster->fragmented = 0; in unpin_extent_range()
6303 spin_unlock(&cluster->lock); in unpin_extent_range()
6972 struct btrfs_free_cluster *cluster, in btrfs_lock_cluster() argument
6978 spin_lock(&cluster->refill_lock); in btrfs_lock_cluster()
6980 if (used_bg == cluster->block_group) in btrfs_lock_cluster()
6987 used_bg = cluster->block_group; in btrfs_lock_cluster()
7002 spin_unlock(&cluster->refill_lock); in btrfs_lock_cluster()
10182 struct btrfs_free_cluster *cluster; in btrfs_remove_block_group() local
10215 cluster = &root->fs_info->data_alloc_cluster; in btrfs_remove_block_group()
10216 spin_lock(&cluster->refill_lock); in btrfs_remove_block_group()
10217 btrfs_return_cluster_to_free_space(block_group, cluster); in btrfs_remove_block_group()
10218 spin_unlock(&cluster->refill_lock); in btrfs_remove_block_group()
10224 cluster = &root->fs_info->meta_alloc_cluster; in btrfs_remove_block_group()
10225 spin_lock(&cluster->refill_lock); in btrfs_remove_block_group()
10226 btrfs_return_cluster_to_free_space(block_group, cluster); in btrfs_remove_block_group()
10227 spin_unlock(&cluster->refill_lock); in btrfs_remove_block_group()