]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: abort transaction in the process_one_buffer() log tree walk callback
authorFilipe Manana <fdmanana@suse.com>
Wed, 16 Jul 2025 14:49:31 +0000 (15:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:29 +0000 (10:54 +0200)
commite6dd405b6671b9753b98d8bdf76f8f0ed36c11cd
tree4211776d33508fe7e28dda687e4ce773a98f285d
parent6ebd726b104fa99d47c0d45979e6a6109844ac18
btrfs: abort transaction in the process_one_buffer() log tree walk callback

In the process_one_buffer() log tree walk callback we return errors to the
log tree walk caller and then the caller aborts the transaction, if we
have one, or turns the fs into error state if we don't have one. While
this reduces code it makes it harder to figure out where exactly an error
came from. So add the transaction aborts after every failure inside the
process_one_buffer() callback, so that it helps figuring out why failures
happen.

Reviewed-by: Boris Burkov <boris@bur.io>
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>
fs/btrfs/tree-log.c