OSDN Git Service

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)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:05 +0000 (15:19 +0200)
commit04587ad9bef6ce9d510325b4ba9852b6129eebdb
tree2e15ebf3da6f69e22fa7704f44ab649cba1128f0
parentbb385bedded3ccbd794559600de4a09448810f4a
btrfs: abort transaction if we fail to update the delayed inode

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