]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: deduplicate log root free in error paths from btrfs_recover_log_trees()
authorFilipe Manana <fdmanana@suse.com>
Tue, 26 Aug 2025 16:30:16 +0000 (17:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:18 +0000 (08:49 +0200)
commit7f09699e5e6127db7bcb6d49d8fc674a74f23659
treea3b2f4dea0acdfa6f642d596a8a19123d66a3159
parentefa44fc4fde3eb60da436d31707c00f6c182a6c8
btrfs: deduplicate log root free in error paths from btrfs_recover_log_trees()

Instead of duplicating the dropping of a log tree in case we jump to the
'error' label, move the dropping under the 'error' label and get rid of the
the unnecessary setting of the log root to NULL since we return immediately
after.

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