]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: remove redundant path release when overwriting item during log replay
authorFilipe Manana <fdmanana@suse.com>
Tue, 2 Sep 2025 16:08:19 +0000 (17:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:20 +0000 (08:49 +0200)
commitf9c02e4b525d766bebfcbeac1b25b03aacfe62f1
tree11fab15f46766fb81407d9a21ddbfd1bb2c7c524
parent9bdfa3eddb67e73f57d1e527e1ba2dcca3bd08c4
btrfs: remove redundant path release when overwriting item during log replay

At overwrite_item() we have a redundant btrfs_release_path() just before
failing with -ENOMEM, as the caller who passed in the path will free it
and therefore also release any refcounts and locks on the extent buffers
of the path. So remove it.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c