Skip to content

Commit

Permalink
btrfs: reada, remove pointless BUG_ON check for fs_info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Sterba committed Nov 30, 2016
1 parent 8694bb6 commit b917bb3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/reada.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b917bb3

Please sign in to comment.