btrfs: unfold transaction abort at clone_copy_inline_extent()
authorFilipe Manana <fdmanana@suse.com>
Fri, 16 May 2025 18:37:44 +0000 (19:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 13:31:06 +0000 (15:31 +0200)
commitf2de2b9ffdc81a4d2713f8785332ae356d510d07
tree3be23b09ca7c82eb6d7eb9d2eda4a99e93d5ca99
parent5ff6050fcd3c5b8ca16beb058af81186ac6f67fb
btrfs: unfold transaction abort at clone_copy_inline_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.

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/reflink.c