summaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2021-11-12 20:52:06 +0100
committerAndreas Gruenbacher <agruenba@redhat.com>2021-12-04 20:02:26 +0100
commit1d05ee7e0d10283107cd6c2ed37005b67cd2f5b7 (patch)
tree778b280ee26c4a43c264f2bf7f6956705f873cc1 /fs/gfs2
parentgfs2: Fix __gfs2_holder_init function name in kernel-doc comment (diff)
downloadlinux-1d05ee7e0d10283107cd6c2ed37005b67cd2f5b7.tar.xz
linux-1d05ee7e0d10283107cd6c2ed37005b67cd2f5b7.zip
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 <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/glops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 650ad77c4d0b..e054ddae7834 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -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,