btrfs: remove BUG_ON from __tree_mod_log_insert
authorDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 16:33:27 +0000 (17:33 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 28 Feb 2017 13:27:11 +0000 (14:27 +0100)
commit047e5e17c1e3551ef0fb34b629c66bec0591db0d
tree14e0fd7b66717ecef8bb9f1afa8790d99ef88575
parente5d74902362f1a06ea3674042d09f1af178c0a20
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>
fs/btrfs/ctree.c