diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-03 09:49:02 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-22 14:28:00 -0400 |
commit | 293542d8e501dc47e32ca82276aa9a0a5d9358b5 (patch) | |
tree | d193ddb82e2d1734ce9a55b3dc9255cb6ab48d6d | |
parent | 0e5c56fd07432c426b7ab1a84e8d97a00d7e08ca (diff) |
hfsplus: switch to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/hfsplus/dir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/hfsplus/dir.c b/fs/hfsplus/dir.c index 15e06fb552da..b5254378f011 100644 --- 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); |