aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/extent-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 71c8e7049d0..813c6bb96c9 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5299,9 +5299,9 @@ alloc:
5299 * people trying to start a new cluster 5299 * people trying to start a new cluster
5300 */ 5300 */
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 goto refill_cluster; 5305 goto refill_cluster;
5306 5306
5307 offset = btrfs_alloc_from_cluster(block_group, last_ptr, 5307 offset = btrfs_alloc_from_cluster(block_group, last_ptr,