projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c1bd1
)
btrfs-progs: no BUG_ON in close_ctree
author
David Sterba
<dsterba@suse.com>
Thu, 18 Aug 2016 15:44:18 +0000
(17:44 +0200)
committer
David Sterba
<dsterba@suse.com>
Thu, 18 Aug 2016 15:44:18 +0000
(17:44 +0200)
There's no reason for it.
Signed-off-by: David Sterba <dsterba@suse.com>
disk-io.h
patch
|
blob
|
history
diff --git
a/disk-io.h
b/disk-io.h
index
d860ff2
..
d6fb982
100644
(file)
--- a/
disk-io.h
+++ b/
disk-io.h
@@
-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);
}