gfs2: d_obtain_alias(ERR_PTR(...)) will do the right thing

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
Al Viro 2023-12-20 05:21:44 +00:00 committed by Andreas Gruenbacher
parent dd00aaeb34
commit 34d7224643

View File

@ -138,8 +138,6 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb,
return ERR_PTR(-ESTALE);
inode = gfs2_lookup_by_inum(sdp, inum->no_addr, inum->no_formal_ino,
GFS2_BLKST_DINODE);
if (IS_ERR(inode))
return ERR_CAST(inode);
return d_obtain_alias(inode);
}