]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
btrfs: do proper error handling in btrfs_update_reloc_root
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:20 +0000 (15:25 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 19 May 2021 08:32:05 +0000 (10:32 +0200)
commitc84b8ae1c123642ec081638c1fdf4594fd7ab037
tree5e06cf481cdda7b817aa2b849c30b4993091eb8b
parent19bccfe33e1ae4745f2e0def0df3426502341890
btrfs: do proper error handling in btrfs_update_reloc_root

BugLink: https://bugs.launchpad.net/bugs/1928857
[ Upstream commit 592fbcd50c99b8adf999a2a54f9245caff333139 ]

We call btrfs_update_root in btrfs_update_reloc_root, which can fail for
all sorts of reasons, including IO errors.  Instead of panicing the box
lets return the error, now that all callers properly handle those
errors.

Reviewed-by: Qu Wenruo <wqu@suse.com>
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/btrfs/relocation.c