diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-04-30 23:07:15 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-22 14:27:54 -0400 |
commit | c1481700f421d66c9fa93e5aa4680d4ce4d9b52f (patch) | |
tree | 9b9c541e294d4cd6422086ce1f57e8a1555022bf | |
parent | 191ac107f924bcbdfd9e31fdad94f9e0ae07f813 (diff) |
qnx6_lookup: switch to d_splice_alias()
... and hash negative lookups
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/qnx6/namei.c | 8 |
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, | |||
29 | if (ino) { | 29 | if (ino) { |
30 | foundinode = qnx6_iget(dir->i_sb, ino); | 30 | foundinode = qnx6_iget(dir->i_sb, ino); |
31 | qnx6_put_page(page); | 31 | qnx6_put_page(page); |
32 | if (IS_ERR(foundinode)) { | 32 | if (IS_ERR(foundinode)) |
33 | pr_debug("lookup->iget -> error %ld\n", | 33 | pr_debug("lookup->iget -> error %ld\n", |
34 | PTR_ERR(foundinode)); | 34 | PTR_ERR(foundinode)); |
35 | return ERR_CAST(foundinode); | ||
36 | } | ||
37 | } else { | 35 | } else { |
38 | pr_debug("%s(): not found %s\n", __func__, name); | 36 | pr_debug("%s(): not found %s\n", __func__, name); |
39 | return NULL; | ||
40 | } | 37 | } |
41 | d_add(dentry, foundinode); | 38 | return d_splice_alias(foundinode, dentry); |
42 | return NULL; | ||
43 | } | 39 | } |