OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5c56f
)
hfsplus: switch to d_splice_alias()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 3 May 2018 13:49:02 +0000
(09:49 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 22 May 2018 18:28:00 +0000
(14:28 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hfsplus/dir.c
patch
|
blob
|
history
diff --git
a/fs/hfsplus/dir.c
b/fs/hfsplus/dir.c
index
15e06fb
..
b525437
100644
(file)
--- a/
fs/hfsplus/dir.c
+++ b/
fs/hfsplus/dir.c
@@
-122,8
+122,7
@@
again:
if (S_ISREG(inode->i_mode))
HFSPLUS_I(inode)->linkid = linkid;
out:
- d_add(dentry, inode);
- return NULL;
+ return d_splice_alias(inode, dentry);
fail:
hfs_find_exit(&fd);
return ERR_PTR(err);