]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: abort transaction during log replay if walk_log_tree() failed
authorFilipe Manana <fdmanana@suse.com>
Wed, 21 May 2025 16:41:18 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:31 +0000 (16:28 +0200)
commite02bdb223399cae60011f7929d175f9178918de5
treed29f2f4a465160b2befea7fcab43fabe72d27da7
parentec5bfcfb6e0d307f2b9afeb69ce147fb43039151
btrfs: abort transaction during log replay if walk_log_tree() failed

commit 2a5898c4aac67494c2f0f7fe38373c95c371c930 upstream.

If we failed walking a log tree during replay, we have a missing
transaction abort to prevent committing a transaction where we didn't
fully replay all the changes from a log tree and therefore can leave the
respective subvolume tree in some inconsistent state. So add the missing
transaction abort.

CC: stable@vger.kernel.org # 6.1+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/tree-log.c