aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/extent-tree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index b7e5f6898d07..97c12067a4b0 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5301,10 +5301,8 @@ alloc:
5301 spin_lock(&last_ptr->refill_lock); 5301 spin_lock(&last_ptr->refill_lock);
5302 if (last_ptr->block_group && 5302 if (last_ptr->block_group &&
5303 (last_ptr->block_group->ro || 5303 (last_ptr->block_group->ro ||
5304 !block_group_bits(last_ptr->block_group, data))) { 5304 !block_group_bits(last_ptr->block_group, data)))
5305 offset = 0;
5306 goto refill_cluster; 5305 goto refill_cluster;
5307 }
5308 5306
5309 offset = btrfs_alloc_from_cluster(block_group, last_ptr, 5307 offset = btrfs_alloc_from_cluster(block_group, last_ptr,
5310 num_bytes, search_start); 5308 num_bytes, search_start);
@@ -5355,7 +5353,7 @@ refill_cluster:
5355 /* allocate a cluster in this block group */ 5353 /* allocate a cluster in this block group */
5356 ret = btrfs_find_space_cluster(trans, root, 5354 ret = btrfs_find_space_cluster(trans, root,
5357 block_group, last_ptr, 5355 block_group, last_ptr,
5358 offset, num_bytes, 5356 search_start, num_bytes,
5359 empty_cluster + empty_size); 5357 empty_cluster + empty_size);
5360 if (ret == 0) { 5358 if (ret == 0) {
5361 /* 5359 /*