Skip to content

Commit 8d56716

Browse files
author
Andreas Gruenbacher
committed
gfs2: Remove redundant check for GLF_INSTANTIATE_NEEDED
If the GLF_INSTANTIATE_NEEDED flag isn't set, gfs2_instantiate() is a no-op. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 1d05ee7 commit 8d56716

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

fs/gfs2/super.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,11 +1244,9 @@ static enum dinode_demise evict_should_delete(struct inode *inode,
12441244
if (ret)
12451245
return SHOULD_NOT_DELETE_DINODE;
12461246

1247-
if (test_bit(GLF_INSTANTIATE_NEEDED, &ip->i_gl->gl_flags)) {
1248-
ret = gfs2_instantiate(gh);
1249-
if (ret)
1250-
return SHOULD_NOT_DELETE_DINODE;
1251-
}
1247+
ret = gfs2_instantiate(gh);
1248+
if (ret)
1249+
return SHOULD_NOT_DELETE_DINODE;
12521250

12531251
/*
12541252
* The inode may have been recreated in the meantime.

0 commit comments

Comments
 (0)