btrfs-progs: no BUG_ON in close_ctree

There's no reason for it.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-08-18 17:44:18 +02:00
parent 87c1bd13c1
commit 9109a8f44e
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ struct btrfs_fs_info *open_ctree_fs_info(const char *filename,
int close_ctree_fs_info(struct btrfs_fs_info *fs_info);
static inline int close_ctree(struct btrfs_root *root)
{
BUG_ON(!root);
if (!root)
return 0;
return close_ctree_fs_info(root->fs_info);
}