Skip to contentSkip to conversation

gfs2: remove redundant set of INSTANTIATE_NEEDED

PATCH New Bob Peterson 1 participant 1 message Nov 12, 2021 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 fs/gfs2/glops.c | 1 -
 1 file changed, 1 deletion(-)
fs/gfs2/glops.c +0 -1
index 650ad77c4d0b..e054ddae7834 100644
@@ -228,7 +228,6 @@ static void rgrp_go_inval(struct gfs2_glock *gl, int flags)
 	gfs2_rgrp_brelse(rgd);
 	WARN_ON_ONCE(!(flags & DIO_METADATA));
 	truncate_inode_pages_range(mapping, start, end);
-	set_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags);
 }
 
 static void gfs2_rgrp_go_dump(struct seq_file *seq, struct gfs2_glock *gl,
Signature · 1 line
2.33.1