diff options
Diffstat (limited to 'fs/gfs2/log.c')
| -rw-r--r-- | fs/gfs2/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index 7ba94b66c91b..d55315a46ece 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c | |||
| @@ -606,8 +606,10 @@ void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) | |||
| 606 | gfs2_remove_from_ail(bd); /* drops ref on bh */ | 606 | gfs2_remove_from_ail(bd); /* drops ref on bh */ |
| 607 | bd->bd_bh = NULL; | 607 | bd->bd_bh = NULL; |
| 608 | sdp->sd_log_num_revoke++; | 608 | sdp->sd_log_num_revoke++; |
| 609 | if (atomic_inc_return(&gl->gl_revokes) == 1) | 609 | if (!test_bit(GLF_REVOKES, &gl->gl_flags)) { |
| 610 | set_bit(GLF_REVOKES, &gl->gl_flags); | ||
| 610 | gfs2_glock_hold(gl); | 611 | gfs2_glock_hold(gl); |
| 612 | } | ||
| 611 | set_bit(GLF_LFLUSH, &gl->gl_flags); | 613 | set_bit(GLF_LFLUSH, &gl->gl_flags); |
| 612 | list_add(&bd->bd_list, &sdp->sd_log_le_revoke); | 614 | list_add(&bd->bd_list, &sdp->sd_log_le_revoke); |
| 613 | } | 615 | } |
