diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-03 15:49:02 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-22 20:28:00 +0200 |
commit | 293542d8e501dc47e32ca82276aa9a0a5d9358b5 (patch) | |
tree | d193ddb82e2d1734ce9a55b3dc9255cb6ab48d6d /fs/hfsplus | |
parent | hfs: don't allow mounting over .../rsrc (diff) | |
download | linux-293542d8e501dc47e32ca82276aa9a0a5d9358b5.tar.xz linux-293542d8e501dc47e32ca82276aa9a0a5d9358b5.zip |
hfsplus: switch to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hfsplus')
-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); |