From: Al Viro Date: Tue, 1 May 2018 03:07:15 +0000 (-0400) Subject: qnx6_lookup: switch to d_splice_alias() X-Git-Tag: v4.19~853^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1481700f421d66c9fa93e5aa4680d4ce4d9b52f;p=platform%2Fkernel%2Flinux-rpi3.git qnx6_lookup: switch to d_splice_alias() ... and hash negative lookups Signed-off-by: Al Viro --- diff --git a/fs/qnx6/namei.c b/fs/qnx6/namei.c index 72c2770..e2e98e6 100644 --- a/fs/qnx6/namei.c +++ b/fs/qnx6/namei.c @@ -29,15 +29,11 @@ struct dentry *qnx6_lookup(struct inode *dir, struct dentry *dentry, if (ino) { foundinode = qnx6_iget(dir->i_sb, ino); qnx6_put_page(page); - if (IS_ERR(foundinode)) { + if (IS_ERR(foundinode)) pr_debug("lookup->iget -> error %ld\n", PTR_ERR(foundinode)); - return ERR_CAST(foundinode); - } } else { pr_debug("%s(): not found %s\n", __func__, name); - return NULL; } - d_add(dentry, foundinode); - return NULL; + return d_splice_alias(foundinode, dentry); }