summaryrefslogtreecommitdiffstats
path: root/fs/qnx6
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-04-30 23:07:15 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-05-22 14:27:54 -0400
commitc1481700f421d66c9fa93e5aa4680d4ce4d9b52f (patch)
tree9b9c541e294d4cd6422086ce1f57e8a1555022bf /fs/qnx6
parent191ac107f924bcbdfd9e31fdad94f9e0ae07f813 (diff)
downloadlinux-c1481700f421d66c9fa93e5aa4680d4ce4d9b52f.tar.bz2
qnx6_lookup: switch to d_splice_alias()
... and hash negative lookups Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/qnx6')
-rw-r--r--fs/qnx6/namei.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/qnx6/namei.c b/fs/qnx6/namei.c
index 72c2770830be..e2e98e653b8d 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);
}