1
0
Fork 0

hfsplus: switch to d_splice_alias()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
hifive-unleashed-5.1
Al Viro 2018-05-03 09:49:02 -04:00
parent 0e5c56fd07
commit 293542d8e5
1 changed files with 1 additions and 2 deletions

View File

@ -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);