Skip to content

Commit

Permalink
btrfs: remove BUG_ON from __tree_mod_log_insert
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Sterba committed Feb 28, 2017
1 parent e5d7490 commit 047e5e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 047e5e1

Please sign in to comment.