[PATCH] fix efs_lookup()
it needs to use d_splice_alias(), not d_add() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
cc99609917
commit
2d8a10cd17
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, struct namei
|
||||||
}
|
}
|
||||||
unlock_kernel();
|
unlock_kernel();
|
||||||
|
|
||||||
d_add(dentry, inode);
|
return d_splice_alias(inode, dentry);
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino,
|
static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue