]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: abort transaction if we fail to update the delayed inode
authorJosef Bacik <josef@toxicpanda.com>
Fri, 21 May 2021 20:44:09 +0000 (16:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:15:45 +0000 (16:15 +0200)
commit41a5f2820aaa24281818143d9f1fafd6b438f944
tree140276e2067ebd15ca757a717e750a0440a0ecf3
parent5a9e95173b9ebe9943ac6858e0143f96dc02b16b
btrfs: abort transaction if we fail to update the delayed inode

[ Upstream commit 04587ad9bef6ce9d510325b4ba9852b6129eebdb ]

If we fail to update the delayed inode we need to abort the transaction,
because we could leave an inode with the improper counts or some other
such corruption behind.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/delayed-inode.c