]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: don't drop a reference if btrfs_check_write_meta_pointer() fails
authorJosef Bacik <josef@toxicpanda.com>
Mon, 19 May 2025 18:03:01 +0000 (14:03 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 27 May 2025 11:26:28 +0000 (13:26 +0200)
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>
fs/btrfs/extent_io.c

index e43f6280f9543a83cf695507b8880799710e31ae..849199768664603ee56df9e811d427be54e042da 100644 (file)
@@ -2189,7 +2189,6 @@ retry:
                                        done = 1;
                                        break;
                                }
-                               free_extent_buffer(eb);
                                continue;
                        }