Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

qnx6_lookup: switch to d_splice_alias()

... and hash negative lookups

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro c1481700 191ac107

+2 -6
+2 -6
fs/qnx6/namei.c
··· 29 29 if (ino) { 30 30 foundinode = qnx6_iget(dir->i_sb, ino); 31 31 qnx6_put_page(page); 32 - if (IS_ERR(foundinode)) { 32 + if (IS_ERR(foundinode)) 33 33 pr_debug("lookup->iget -> error %ld\n", 34 34 PTR_ERR(foundinode)); 35 - return ERR_CAST(foundinode); 36 - } 37 35 } else { 38 36 pr_debug("%s(): not found %s\n", __func__, name); 39 - return NULL; 40 37 } 41 - d_add(dentry, foundinode); 42 - return NULL; 38 + return d_splice_alias(foundinode, dentry); 43 39 }