Skip to content

Commit 1d05ee7

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: remove redundant set of INSTANTIATE_NEEDED
Function rgrp_go_inval calls gfs2_rgrp_brelse to invalidate the in-core rgrp structures. After the call it set GLF_INSTANTIATE_NEEDED, which is redundant, since gfs2_rgrp_brelse also sets it. This patch simply removes the redundant set_bit. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent ffd0cd3 commit 1d05ee7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/gfs2/glops.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ static void rgrp_go_inval(struct gfs2_glock *gl, int flags)
228228
gfs2_rgrp_brelse(rgd);
229229
WARN_ON_ONCE(!(flags & DIO_METADATA));
230230
truncate_inode_pages_range(mapping, start, end);
231-
set_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags);
232231
}
233232

234233
static void gfs2_rgrp_go_dump(struct seq_file *seq, struct gfs2_glock *gl,

0 commit comments

Comments
 (0)