]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: return real error when failing tickets in maybe_fail_all_tickets()
authorFilipe Manana <fdmanana@suse.com>
Fri, 17 Oct 2025 15:41:05 +0000 (16:41 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:04:30 +0000 (22:04 +0100)
commit063171a4f0fa25fe47331b4fee3f705484f1c690
treee26fc5b88fafe112b5aa34ebf13d8a908627cd2b
parent988f693a46d83dc832005a1403ae0471eb1f8964
btrfs: return real error when failing tickets in maybe_fail_all_tickets()

In case we had a transaction abort we set a ticket's error to -EIO, but we
have the real error that caused the transaction to be aborted returned by
the macro BTRFS_FS_ERROR(). So use that real error instead of -EIO.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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/space-info.c