Skip to content

Commit 00488aa

Browse files
author
Al Viro
committed
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>
1 parent b85ea95 commit 00488aa

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/zonefs/super.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,6 @@ static struct dentry *zonefs_lookup(struct inode *dir, struct dentry *dentry,
747747
inode = zonefs_get_dir_inode(dir, dentry);
748748
else
749749
inode = zonefs_get_file_inode(dir, dentry);
750-
if (IS_ERR(inode))
751-
return ERR_CAST(inode);
752750

753751
return d_splice_alias(inode, dentry);
754752
}

0 commit comments

Comments
 (0)