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 /fs/hfsplus/dir.c | |
parent | 0e5c56fd07432c426b7ab1a84e8d97a00d7e08ca (diff) |
hfsplus: switch to d_splice_alias()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hfsplus/dir.c')
-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: | |||
122 | if (S_ISREG(inode->i_mode)) | 122 | if (S_ISREG(inode->i_mode)) |
123 | HFSPLUS_I(inode)->linkid = linkid; | 123 | HFSPLUS_I(inode)->linkid = linkid; |
124 | out: | 124 | out: |
125 | d_add(dentry, inode); | 125 | return d_splice_alias(inode, dentry); |
126 | return NULL; | ||
127 | fail: | 126 | fail: |
128 | hfs_find_exit(&fd); | 127 | hfs_find_exit(&fd); |
129 | return ERR_PTR(err); | 128 | return ERR_PTR(err); |