projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
switch open-coded instances of d_make_root() to new helper
[firefly-linux-kernel-4.4.55.git]
/
fs
/
befs
/
linuxvfs.c
diff --git
a/fs/befs/linuxvfs.c
b/fs/befs/linuxvfs.c
index 6e6d536767fe9c7f5964a2ce866e50db580ffebe..e18da23d42b5b163cb3a7f3dd8da9cdf76f9774d 100644
(file)
--- a/
fs/befs/linuxvfs.c
+++ b/
fs/befs/linuxvfs.c
@@
-852,9
+852,8
@@
befs_fill_super(struct super_block *sb, void *data, int silent)
ret = PTR_ERR(root);
goto unacquire_priv_sbp;
}
- sb->s_root = d_
alloc
_root(root);
+ sb->s_root = d_
make
_root(root);
if (!sb->s_root) {
- iput(root);
befs_error(sb, "get root inode failed");
goto unacquire_priv_sbp;
}