summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2025-05-19 21:03:01 +0300
committerDavid Sterba <dsterba@suse.com>2025-05-27 14:26:28 +0300
commit4db7384ce55c4d7bfb9876fabd8d8778b2ff90ff (patch)
treec222d0aebfb5dc66d5e11716aeb7e90d07b86225
parenteeb133a6341280a1315c12b5b24a42e1fbf35487 (diff)
downloadlinux-4db7384ce55c4d7bfb9876fabd8d8778b2ff90ff.tar.xz
btrfs: don't drop a reference if btrfs_check_write_meta_pointer() fails
In the zoned mode there's a bug in the extent buffer tree conversion to xarray. The reference for eb is dropped and code continues but the references get dropped by releasing the batch. Reported-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Fixes: 19d7f65f032f ("btrfs: convert the buffer_radix to an xarray") Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Tested-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/extent_io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index e43f6280f954..849199768664 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2189,7 +2189,6 @@ retry:
done = 1;
break;
}
- free_extent_buffer(eb);
continue;
}