projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8694bb6
)
btrfs: reada, remove pointless BUG_ON check for fs_info
author
David Sterba
<dsterba@suse.com>
Tue, 8 Nov 2016 16:18:35 +0000
(17:18 +0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 30 Nov 2016 12:45:16 +0000
(13:45 +0100)
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>
fs/btrfs/reada.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/reada.c
b/fs/btrfs/reada.c
index 380ab6629e90412521782398b83fc4b216aa81af..f0beb63a6d824dba2a921c80e4f3193be51f0ea6 100644
(file)
--- 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);