]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: unfold transaction aborts in btrfs_finish_one_ordered()
authorFilipe Manana <fdmanana@suse.com>
Wed, 21 Jan 2026 16:35:56 +0000 (16:35 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:19 +0000 (07:56 +0100)
commit571e75f4c0dba42e57496015987285ed4380d041
tree9a761751445c916b090af59d0b01684875091026
parenta8bec25e014eab671ec8a25b03d391cad3e55230
btrfs: unfold transaction aborts in btrfs_finish_one_ordered()

We have a single transaction abort that can be caused either by a failure
from a call to btrfs_mark_extent_written(), if we are dealing with a
write to a prealloc extent, or otherwise from a call to
insert_ordered_extent_file_extent(). So when the transaction abort happens
we can not know for sure which case failed. Unfold the aborts so that it's
clear in case of a failure.

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