diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-20 06:21:44 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-12-20 12:46:52 +0100 |
commit | 34d72246437155299dd08fd29277e6fa31081ea0 (patch) | |
tree | 955dec0a767dcb029f7478f19232079a7ca9d4f5 /fs/gfs2 | |
parent | gfs2: Use GL_NOBLOCK flag for non-blocking lookups (diff) | |
download | linux-34d72246437155299dd08fd29277e6fa31081ea0.tar.xz linux-34d72246437155299dd08fd29277e6fa31081ea0.zip |
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.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/gfs2/export.c b/fs/gfs2/export.c index cf40895233f5..3334c394ce9c 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); } |