Commit 72ff0b03 authored by Al Viro's avatar Al Viro

freevxfs_lookup(): use d_splice_alias()

code is simpler that way
Cc: Christoph Hellwig <>
Signed-off-by: default avatarAl Viro <>
parent d023b3a1
......@@ -193,13 +193,9 @@ vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags)
ino = vxfs_inode_by_name(dip, dp);
if (ino) {
if (ino)
ip = vxfs_iget(dip->i_sb, ino);
if (IS_ERR(ip))
return ERR_CAST(ip);
d_add(dp, ip);
return NULL;
return d_splice_alias(ip, dp);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment