aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index f92b297e7da5..e6a3ba9dd107 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3275,8 +3275,10 @@ next:
3275 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); 3275 ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
3276 if (ret > 0) 3276 if (ret > 0)
3277 ret = -EIO; 3277 ret = -EIO;
3278 if (ret < 0) 3278 if (ret < 0) {
3279 btrfs_end_transaction(trans, root);
3279 goto out; 3280 goto out;
3281 }
3280 3282
3281 clear_extent_bits(&info->block_group_cache, key.objectid, 3283 clear_extent_bits(&info->block_group_cache, key.objectid,
3282 key.objectid + key.offset - 1, 3284 key.objectid + key.offset - 1,