From: David Sterba Date: Tue, 8 Nov 2016 16:18:35 +0000 (+0100) Subject: btrfs: reada, remove pointless BUG_ON check for fs_info X-Git-Tag: v4.14-rc1~1552^2~34^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b917bb387812f9abb81fc842e4c3b3ec727e10cf;p=platform%2Fkernel%2Flinux-rpi.git btrfs: reada, remove pointless BUG_ON check for fs_info We dereference fs_info several times, besides that post-mount functions should never see a NULL fs_info. Signed-off-by: David Sterba --- diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c index 380ab66..f0beb63 100644 --- a/fs/btrfs/reada.c +++ b/fs/btrfs/reada.c @@ -439,7 +439,6 @@ static struct reada_extent *reada_find_extent(struct btrfs_root *root, /* ignore whether the entry was inserted */ radix_tree_delete(&dev->reada_extents, index); } - BUG_ON(fs_info == NULL); radix_tree_delete(&fs_info->reada_tree, index); spin_unlock(&fs_info->reada_lock); btrfs_dev_replace_unlock(&fs_info->dev_replace, 0);