]> git.hungrycats.org Git - linux/commitdiff
btrfs: reada, remove pointless BUG_ON check for fs_info
authorDavid Sterba <dsterba@suse.com>
Tue, 8 Nov 2016 16:18:35 +0000 (17:18 +0100)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 10 Dec 2016 05:05:44 +0000 (00:05 -0500)
We dereference fs_info several times, besides that post-mount functions
should never see a NULL fs_info.

Signed-off-by: David Sterba <dsterba@suse.com>
(cherry picked from commit b917bb387812f9abb81fc842e4c3b3ec727e10cf)

fs/btrfs/reada.c

index 516d10219b361ae7c35171e778b50fa8af0d4b3e..860f7622e85a8046b7abcffc9a0a21b6bd212714 100644 (file)
@@ -452,7 +452,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);