Skip to content

Commit 047e5e1

Browse files
committed
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 <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent e5d7490 commit 047e5e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/btrfs/ctree.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,6 @@ __tree_mod_log_insert(struct btrfs_fs_info *fs_info, struct tree_mod_elem *tm)
453453
struct rb_node *parent = NULL;
454454
struct tree_mod_elem *cur;
455455

456-
BUG_ON(!tm);
457-
458456
tm->seq = btrfs_inc_tree_mod_seq(fs_info);
459457

460458
tm_root = &fs_info->tree_mod_log;

0 commit comments

Comments
 (0)