forked from Mirrors/btrfs-progs
btrfs-progs: no BUG_ON in close_ctree
There's no reason for it. Signed-off-by: David Sterba <dsterba@suse.com>master
parent
87c1bd13c1
commit
9109a8f44e
|
@ -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);
|
int close_ctree_fs_info(struct btrfs_fs_info *fs_info);
|
||||||
static inline int close_ctree(struct btrfs_root *root)
|
static inline int close_ctree(struct btrfs_root *root)
|
||||||
{
|
{
|
||||||
BUG_ON(!root);
|
if (!root)
|
||||||
|
return 0;
|
||||||
return close_ctree_fs_info(root->fs_info);
|
return close_ctree_fs_info(root->fs_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue