diff options
Diffstat (limited to 'fs/kernfs/dir.c')
-rw-r--r-- | fs/kernfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c index 1c771931bb60..37989f02a226 100644 --- a/fs/kernfs/dir.c +++ b/fs/kernfs/dir.c | |||
@@ -807,7 +807,7 @@ static struct dentry *kernfs_iop_lookup(struct inode *dir, | |||
807 | } | 807 | } |
808 | 808 | ||
809 | /* instantiate and hash dentry */ | 809 | /* instantiate and hash dentry */ |
810 | ret = d_materialise_unique(dentry, inode); | 810 | ret = d_splice_alias(inode, dentry); |
811 | out_unlock: | 811 | out_unlock: |
812 | mutex_unlock(&kernfs_mutex); | 812 | mutex_unlock(&kernfs_mutex); |
813 | return ret; | 813 | return ret; |