GFS2: Don't bother trying to add rgrps to the lru list
PATCH 1/1 GFS2: Don't bother trying to add rgrps to the lru list
In reply to a message not in the archiveHi,
This patch removes a call to gfs2_glock_add_to_lru from function gfs2_clear_rgrpd, which is called when GFS2 is removing all the rgrps from memory. The call is just a waste of time because as soon as it adds it to the lru_list, the subsequent call to gfs2_glock_put takes it back off again. It doesn't make sense for the rgrps to ever be on the lru list anyway because gfs2_rgrp_glops doesn't even have the GLOF_LRU bit set (by design).
--- fs/gfs2/rgrp.c | 1 - 1 file changed, 1 deletion(-)
fs/gfs2/rgrp.c +0 -1
@@ -706,7 +706,6 @@ void gfs2_clear_rgrpd(struct gfs2_sbd *sdp)if (gl) {glock_set_object (gl,NULL ); -gfs2_glock_add_to_lru (gl);gfs2_glock_put (gl); }
PATCH 1/1 GFS2: Don't bother trying to add rgrps to the lru list
Hi,
Yes, that makes sense to me,
Steve.
Quoted 28 lines · Bob Peterson
Hi,
This patch removes a call to
gfs2_glock_add_to_lrufrom functiongfs2_clear_rgrpd, which is called when GFS2 is removing all the rgrps from memory. The call is just a waste of time because as soon as it adds it to thelru_list, the subsequent call togfs2_glock_puttakes it back off again. It doesn't make sense for the rgrps to ever be on the lru list anyway becausegfs2_rgrp_glopsdoesn't even have theGLOF_LRUbit set (by design).Signed-off-by Bob Peterson <[email protected]>--- fs/gfs2/rgrp.c | 1 - 1 file changed, 1 deletion(-)fs/gfs2/rgrp.c +0
-1@@ -706,7 +706,6 @@ void gfs2_clear_rgrpd(struct gfs2_sbd *sdp)if (gl) {glock_set_object (gl,NULL ); -gfs2_glock_add_to_lru (gl);gfs2_glock_put (gl); }