From 293542d8e501dc47e32ca82276aa9a0a5d9358b5 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Thu, 3 May 2018 09:49:02 -0400 Subject: hfsplus: switch to d_splice_alias() Signed-off-by: Al Viro --- fs/hfsplus/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs/hfsplus') 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); -- cgit v1.2.3-70-g09d2