diff options
Diffstat (limited to 'fs/gfs2/trans.c')
| -rw-r--r-- | fs/gfs2/trans.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 7374907742a8..2b20d7046bf3 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
| @@ -270,19 +270,12 @@ void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh) | |||
| 270 | 270 | ||
| 271 | void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) | 271 | void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) |
| 272 | { | 272 | { |
| 273 | struct gfs2_glock *gl = bd->bd_gl; | ||
| 274 | struct gfs2_trans *tr = current->journal_info; | 273 | struct gfs2_trans *tr = current->journal_info; |
| 275 | 274 | ||
| 276 | BUG_ON(!list_empty(&bd->bd_list)); | 275 | BUG_ON(!list_empty(&bd->bd_list)); |
| 277 | BUG_ON(!list_empty(&bd->bd_ail_st_list)); | 276 | gfs2_add_revoke(sdp, bd); |
| 278 | BUG_ON(!list_empty(&bd->bd_ail_gl_list)); | ||
| 279 | bd->bd_ops = &gfs2_revoke_lops; | ||
| 280 | tr->tr_touched = 1; | 277 | tr->tr_touched = 1; |
| 281 | tr->tr_num_revoke++; | 278 | tr->tr_num_revoke++; |
| 282 | sdp->sd_log_num_revoke++; | ||
| 283 | atomic_inc(&gl->gl_revokes); | ||
| 284 | set_bit(GLF_LFLUSH, &gl->gl_flags); | ||
| 285 | list_add(&bd->bd_list, &sdp->sd_log_le_revoke); | ||
| 286 | } | 279 | } |
| 287 | 280 | ||
| 288 | void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) | 281 | void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) |
