Lines Matching defs:cluster_bg
3557 struct btrfs_block_group *cluster_bg;
3563 cluster_bg = btrfs_lock_cluster(bg, last_ptr, ffe_ctl->delalloc);
3564 if (!cluster_bg)
3566 if (cluster_bg != bg && (cluster_bg->ro ||
3567 !block_group_bits(cluster_bg, ffe_ctl->flags)))
3570 offset = btrfs_alloc_from_cluster(cluster_bg, last_ptr,
3571 ffe_ctl->num_bytes, cluster_bg->start,
3576 trace_btrfs_reserve_extent_cluster(cluster_bg,
3578 *cluster_bg_ret = cluster_bg;
3582 WARN_ON(last_ptr->block_group != cluster_bg);
3596 if (ffe_ctl->loop >= LOOP_NO_EMPTY_SIZE && cluster_bg != bg) {
3598 btrfs_release_block_group(cluster_bg, ffe_ctl->delalloc);
3605 if (cluster_bg != bg)
3606 btrfs_release_block_group(cluster_bg, ffe_ctl->delalloc);