mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
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>
This commit is contained in:
parent
8694bb6136
commit
b917bb3878
1 changed files with 0 additions and 1 deletions
|
@ -439,7 +439,6 @@ static struct reada_extent *reada_find_extent(struct btrfs_root *root,
|
||||||
/* ignore whether the entry was inserted */
|
/* ignore whether the entry was inserted */
|
||||||
radix_tree_delete(&dev->reada_extents, index);
|
radix_tree_delete(&dev->reada_extents, index);
|
||||||
}
|
}
|
||||||
BUG_ON(fs_info == NULL);
|
|
||||||
radix_tree_delete(&fs_info->reada_tree, index);
|
radix_tree_delete(&fs_info->reada_tree, index);
|
||||||
spin_unlock(&fs_info->reada_lock);
|
spin_unlock(&fs_info->reada_lock);
|
||||||
btrfs_dev_replace_unlock(&fs_info->dev_replace, 0);
|
btrfs_dev_replace_unlock(&fs_info->dev_replace, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue