Skip to content

Commit 2d8a10c

Browse files
author
Al Viro
committed
[PATCH] fix efs_lookup()
it needs to use d_splice_alias(), not d_add() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent cc99609 commit 2d8a10c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/efs/namei.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, struct namei
7474
}
7575
unlock_kernel();
7676

77-
d_add(dentry, inode);
78-
return NULL;
77+
return d_splice_alias(inode, dentry);
7978
}
8079

8180
static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino,

0 commit comments

Comments
 (0)