make d_splice_alias(ERR_PTR(err), dentry) = ERR_PTR(err)
... and simplify the living hell out of callers Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -371,11 +371,9 @@ static struct dentry *logfs_lookup(struct inode *dir, struct dentry *dentry,
|
||||
page_cache_release(page);
|
||||
|
||||
inode = logfs_iget(dir->i_sb, ino);
|
||||
if (IS_ERR(inode)) {
|
||||
if (IS_ERR(inode))
|
||||
printk(KERN_ERR"LogFS: Cannot read inode #%llx for dentry (%lx, %lx)n",
|
||||
ino, dir->i_ino, index);
|
||||
return ERR_CAST(inode);
|
||||
}
|
||||
return d_splice_alias(inode, dentry);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user