Lines Matching refs:cluster
6247 struct btrfs_free_cluster *cluster = NULL; in unpin_extent_range() local
6263 cluster = fetch_cluster_info(root, in unpin_extent_range()
6288 if (cluster && cluster->fragmented && in unpin_extent_range()
6290 spin_lock(&cluster->lock); in unpin_extent_range()
6291 cluster->fragmented = 0; in unpin_extent_range()
6292 spin_unlock(&cluster->lock); in unpin_extent_range()
6961 struct btrfs_free_cluster *cluster, in btrfs_lock_cluster() argument
6967 spin_lock(&cluster->refill_lock); in btrfs_lock_cluster()
6969 if (used_bg == cluster->block_group) in btrfs_lock_cluster()
6976 used_bg = cluster->block_group; in btrfs_lock_cluster()
6991 spin_unlock(&cluster->refill_lock); in btrfs_lock_cluster()
10009 struct btrfs_free_cluster *cluster; in btrfs_remove_block_group() local
10042 cluster = &root->fs_info->data_alloc_cluster; in btrfs_remove_block_group()
10043 spin_lock(&cluster->refill_lock); in btrfs_remove_block_group()
10044 btrfs_return_cluster_to_free_space(block_group, cluster); in btrfs_remove_block_group()
10045 spin_unlock(&cluster->refill_lock); in btrfs_remove_block_group()
10051 cluster = &root->fs_info->meta_alloc_cluster; in btrfs_remove_block_group()
10052 spin_lock(&cluster->refill_lock); in btrfs_remove_block_group()
10053 btrfs_return_cluster_to_free_space(block_group, cluster); in btrfs_remove_block_group()
10054 spin_unlock(&cluster->refill_lock); in btrfs_remove_block_group()