summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delalloc-space.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2021-01-14 14:02:44 -0500
committerDavid Sterba <dsterba@suse.com>2021-02-08 22:58:56 +0100
commitf78743fbdae1bb31bc9c9233c3590a5048782381 (patch)
treed02aba6786f1a6ad98cfabf47f9b3aa6929ea05f /fs/btrfs/delalloc-space.h
parent938fcbfb0cbcf532a1869efab58e6009446b1ced (diff)
downloadlinux-f78743fbdae1bb31bc9c9233c3590a5048782381.tar.bz2
btrfs: do not warn if we can't find the reloc root when looking up backref
The backref code is looking for a reloc_root that corresponds to the given fs root. However any number of things could have gone wrong while initializing that reloc_root, like ENOMEM while trying to allocate the root itself, or EIO while trying to write the root item. This would result in no corresponding reloc_root being in the reloc root cache, and thus would return NULL when we do the find_reloc_root() call. Because of this we do not want to WARN_ON(). This presumably was meant to catch developer errors, cases where we messed up adding the reloc root. However we can easily hit this case with error injection, and thus should not do a WARN_ON(). CC: stable@vger.kernel.org # 5.10+ Reported-by: Zygo Blaxell <ce3g8jdj@umail.furryterror.org> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delalloc-space.h')
0 files changed, 0 insertions, 0 deletions