]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: return errors from btrfs_del_csums in cleanup_ref_head
authorJosef Bacik <josef@toxicpanda.com>
Wed, 19 May 2021 14:52:46 +0000 (10:52 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 27 May 2021 21:30:55 +0000 (23:30 +0200)
commitba4d006335408e1be5328853e04d58d111452187
tree61a404a1837f5ce0ca86b49e4472408571fd00f0
parent303114e0bb108038d1661052e688987f3d2ef230
btrfs: return errors from btrfs_del_csums in cleanup_ref_head

We are unconditionally returning 0 in cleanup_ref_head, despite the fact
that btrfs_del_csums could fail.  We need to return the error so the
transaction gets aborted properly, fix this by returning ret from
btrfs_del_csums in cleanup_ref_head.

Reviewed-by: Qu Wenruo <wqu@suse.com>
CC: stable@vger.kernel.org # 4.19+
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/extent-tree.c