Commit b135dcea authored by Al Viro's avatar Al Viro

qnx4_lookup: use d_splice_alias()

code is simpler that way
Acked-by: default avatarAnders Larsen <>
Signed-off-by: default avatarAl Viro <>
parent b0149516
......@@ -114,13 +114,9 @@ struct dentry * qnx4_lookup(struct inode *dir, struct dentry *dentry, unsigned i
foundinode = qnx4_iget(dir->i_sb, ino);
if (IS_ERR(foundinode)) {
if (IS_ERR(foundinode))
QNX4DEBUG((KERN_ERR "qnx4: lookup->iget -> error %ld\n",
return ERR_CAST(foundinode);
d_add(dentry, foundinode);
return NULL;
return d_splice_alias(foundinode, dentry);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment