summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-08 17:18:35 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-30 13:45:16 +0100
commitb917bb387812f9abb81fc842e4c3b3ec727e10cf (patch)
treea49cc8b479b86099927380eb3e97d7e1f88ccc93 /fs
parent8694bb61360554e751f43688a9ff1793609884c4 (diff)
downloadlinux-b917bb387812f9abb81fc842e4c3b3ec727e10cf.tar.bz2
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 <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/reada.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c
index 380ab6629e90..f0beb63a6d82 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);