aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-12-20 05:21:44 +0000
committerAndreas Gruenbacher <agruenba@redhat.com>2023-12-20 12:46:52 +0100
commit34d72246437155299dd08fd29277e6fa31081ea0 (patch)
tree955dec0a767dcb029f7478f19232079a7ca9d4f5 /fs/gfs2
parentdd00aaeb343255a8a30de671bd27bde79a47c8e5 (diff)
downloadlinux-34d72246437155299dd08fd29277e6fa31081ea0.tar.gz
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/export.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/gfs2/export.c b/fs/gfs2/export.c
index cf40895233f5a..3334c394ce9cb 100644
--- a/fs/gfs2/export.c
+++ b/fs/gfs2/export.c
@@ -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);
}