projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2e901
)
btrfs: reada, remove pointless BUG_ON in reada_find_extent
author
David Sterba
<dsterba@suse.com>
Tue, 8 Nov 2016 16:11:27 +0000
(17:11 +0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 30 Nov 2016 12:45:16 +0000
(13:45 +0100)
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>
fs/btrfs/reada.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/reada.c
b/fs/btrfs/reada.c
index e910bd9b1588612a58ce0dd4eafbfc909ef44436..380ab6629e90412521782398b83fc4b216aa81af 100644
(file)
--- 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);