]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: abort transaction if we fail to update inode in log replay dir fixup
authorFilipe Manana <fdmanana@suse.com>
Wed, 3 Sep 2025 16:43:04 +0000 (17:43 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:21 +0000 (08:49 +0200)
commit5a0565cad3ef7cbf4cf43d1dd1e849b156205292
treebfcd4f8d38e361b60045b11237e21977e6ee7925
parent0b7453b7a1c1f8aa1570da2d0cc81bf7691eb5f1
btrfs: abort transaction if we fail to update inode in log replay dir fixup

If we fail to update the inode at link_to_fixup_dir(), we don't abort the
transaction and propagate the error up the call chain, which makes it hard
to pinpoint the error to the inode update. So abort the transaction if the
inode update call fails, so that if it happens we known immediately.

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