gfs2: Replace gl_revokes with a GLF flag
The gl_revokes value determines how many outstanding revokes a glock has on the superblock revokes list; this is used to avoid unnecessary log flushes. However, gl_revokes is only ever tested for being zero, and it's only decremented in revoke_lo_after_commit, which removes all revokes from the list, so we know that the gl_revoke values of all the glocks on the list will reach zero. Therefore, we can replace gl_revokes with a bit flag. This saves an atomic counter in struct gfs2_glock. Signed-off-by:Bob Peterson <rpeterso@redhat.com> Signed-off-by:
Andreas Gruenbacher <agruenba@redhat.com>
Showing
- fs/gfs2/glock.c 2 additions, 2 deletionsfs/gfs2/glock.c
- fs/gfs2/incore.h 1 addition, 1 deletionfs/gfs2/incore.h
- fs/gfs2/log.c 3 additions, 1 deletionfs/gfs2/log.c
- fs/gfs2/lops.c 24 additions, 9 deletionsfs/gfs2/lops.c
- fs/gfs2/main.c 0 additions, 1 deletionfs/gfs2/main.c
- fs/gfs2/super.c 1 addition, 1 deletionfs/gfs2/super.c
Loading
Please register or sign in to comment