diff options
author | David Sterba <dsterba@suse.com> | 2016-11-08 17:11:27 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 13:45:16 +0100 |
commit | 8694bb61360554e751f43688a9ff1793609884c4 (patch) | |
tree | 45e1526d7f43d24a4e5bbc4246bc3819d85c1914 /fs/btrfs/reada.c | |
parent | btrfs: reada, sink start parameter to btree_readahead_hook (diff) | |
download | linux-8694bb61360554e751f43688a9ff1793609884c4.tar.xz linux-8694bb61360554e751f43688a9ff1793609884c4.zip |
btrfs: reada, remove pointless BUG_ON in reada_find_extent
The lock is held, we make the same lookup that previously failed with
EEXIST and we don't insert NULL pointers.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reada.c')
-rw-r--r-- | fs/btrfs/reada.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c index e910bd9b1588..380ab6629e90 100644 --- a/fs/btrfs/reada.c +++ b/fs/btrfs/reada.c @@ -393,7 +393,6 @@ static struct reada_extent *reada_find_extent(struct btrfs_root *root, ret = radix_tree_insert(&fs_info->reada_tree, index, re); if (ret == -EEXIST) { re_exist = radix_tree_lookup(&fs_info->reada_tree, index); - BUG_ON(!re_exist); re_exist->refcnt++; spin_unlock(&fs_info->reada_lock); btrfs_dev_replace_unlock(&fs_info->dev_replace, 0); |