]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: unfold transaction abort at btrfs_insert_one_raid_extent()
authorFilipe Manana <fdmanana@suse.com>
Mon, 19 May 2025 11:16:10 +0000 (12:16 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:24 +0000 (23:53 +0200)
commit593062f67b828ecbd74bcf41e8be44ccf7d72374
treecc28b4a38154e8d006952ee464da1f92eceda6f8
parent35bb03e57aa7d1ed8203b802d306089d64664d52
btrfs: unfold transaction abort at btrfs_insert_one_raid_extent()

We have a common error path where we abort the transaction, but like this
in case we get a transaction abort stack trace we don't know exactly which
previous function call failed. Instead abort the transaction after any
function call that returns an error, so that we can easily identify which
function failed.

Reviewed-by: Daniel Vacek <neelx@suse.com>
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/raid-stripe-tree.c