aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/free-space-cache.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index 38f3fd923043..9f985a429877 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -1492,7 +1492,7 @@ static int insert_into_bitmap(struct btrfs_free_space_ctl *ctl,
1492 1492
1493 if (ctl->op == &free_space_op) 1493 if (ctl->op == &free_space_op)
1494 block_group = ctl->private; 1494 block_group = ctl->private;
1495 1495again:
1496 /* 1496 /*
1497 * Since we link bitmaps right into the cluster we need to see if we 1497 * Since we link bitmaps right into the cluster we need to see if we
1498 * have a cluster here, and if so and it has our bitmap we need to add 1498 * have a cluster here, and if so and it has our bitmap we need to add
@@ -1510,13 +1510,13 @@ static int insert_into_bitmap(struct btrfs_free_space_ctl *ctl,
1510 node = rb_first(&cluster->root); 1510 node = rb_first(&cluster->root);
1511 if (!node) { 1511 if (!node) {
1512 spin_unlock(&cluster->lock); 1512 spin_unlock(&cluster->lock);
1513 goto again; 1513 goto no_cluster_bitmap;
1514 } 1514 }
1515 1515
1516 entry = rb_entry(node, struct btrfs_free_space, offset_index); 1516 entry = rb_entry(node, struct btrfs_free_space, offset_index);
1517 if (!entry->bitmap) { 1517 if (!entry->bitmap) {
1518 spin_unlock(&cluster->lock); 1518 spin_unlock(&cluster->lock);
1519 goto again; 1519 goto no_cluster_bitmap;
1520 } 1520 }
1521 1521
1522 if (entry->offset == offset_to_bitmap(ctl, offset)) { 1522 if (entry->offset == offset_to_bitmap(ctl, offset)) {
@@ -1531,7 +1531,8 @@ static int insert_into_bitmap(struct btrfs_free_space_ctl *ctl,
1531 goto out; 1531 goto out;
1532 } 1532 }
1533 } 1533 }
1534again: 1534
1535no_cluster_bitmap:
1535 bitmap_info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset), 1536 bitmap_info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset),
1536 1, 0); 1537 1, 0);
1537 if (!bitmap_info) { 1538 if (!bitmap_info) {