zonefs: d_splice_alias() will do the right thing on ERR_PTR() inode
Acked-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
b85ea95d08
commit
00488aa211
@ -747,8 +747,6 @@ static struct dentry *zonefs_lookup(struct inode *dir, struct dentry *dentry,
|
||||
inode = zonefs_get_dir_inode(dir, dentry);
|
||||
else
|
||||
inode = zonefs_get_file_inode(dir, dentry);
|
||||
if (IS_ERR(inode))
|
||||
return ERR_CAST(inode);
|
||||
|
||||
return d_splice_alias(inode, dentry);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user