diff options
author | David Sterba <dsterba@suse.com> | 2017-02-14 19:33:27 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 16:27:11 +0300 |
commit | 047e5e17c1e3551ef0fb34b629c66bec0591db0d (patch) | |
tree | 14e0fd7b66717ecef8bb9f1afa8790d99ef88575 /fs/btrfs/ctree.c | |
parent | e5d74902362f1a06ea3674042d09f1af178c0a20 (diff) | |
download | linux-047e5e17c1e3551ef0fb34b629c66bec0591db0d.tar.xz |
btrfs: remove BUG_ON from __tree_mod_log_insert
All callers dereference the 'tm' parameter before it gets to this
function, the NULL check does not make much sense here.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 1192bc7d2ee7..2c3c943bfcdc 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -453,8 +453,6 @@ __tree_mod_log_insert(struct btrfs_fs_info *fs_info, struct tree_mod_elem *tm) struct rb_node *parent = NULL; struct tree_mod_elem *cur; - BUG_ON(!tm); - tm->seq = btrfs_inc_tree_mod_seq(fs_info); tm_root = &fs_info->tree_mod_log; |