author: Andreas Gruenbacher <agruenba@redhat.com> 2020-06-09 14:33:11 +0200
committer: Andreas Gruenbacher <agruenba@redhat.com> 2020-06-30 13:04:45 +0200
commit: 5902f4dd6e666c4d160b2f5c4505f7e58642d2bf
parent: 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 370c3a4b31ac..6774865f5b5b 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -207,10 +207,11 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
if (no_formal_ino && ip->i_no_formal_ino &&
no_formal_ino != ip->i_no_formal_ino) {
+ error = -ESTALE;
if (inode->i_state & I_NEW)
goto fail;
iput(inode);
- return ERR_PTR(-ESTALE);
+ return ERR_PTR(error);
}
if (inode->i_state & I_NEW)