diff options
| author | David Sterba <dsterba@suse.com> | 2017-02-14 11:33:27 -0500 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2017-02-28 08:27:11 -0500 |
| commit | 047e5e17c1e3551ef0fb34b629c66bec0591db0d (patch) | |
| tree | 14e0fd7b66717ecef8bb9f1afa8790d99ef88575 | |
| parent | e5d74902362f1a06ea3674042d09f1af178c0a20 (diff) | |
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>
| -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) | |||
| 453 | struct rb_node *parent = NULL; | 453 | struct rb_node *parent = NULL; |
| 454 | struct tree_mod_elem *cur; | 454 | struct tree_mod_elem *cur; |
| 455 | 455 | ||
| 456 | BUG_ON(!tm); | ||
| 457 | |||
| 458 | tm->seq = btrfs_inc_tree_mod_seq(fs_info); | 456 | tm->seq = btrfs_inc_tree_mod_seq(fs_info); |
| 459 | 457 | ||
| 460 | tm_root = &fs_info->tree_mod_log; | 458 | tm_root = &fs_info->tree_mod_log; |
