diff options
Diffstat (limited to 'fs/gfs2/lops.c')
-rw-r--r-- | fs/gfs2/lops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index a0371f835cfb..7ef335623373 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c | |||
@@ -492,11 +492,12 @@ static void databuf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) | |||
492 | 492 | ||
493 | gfs2_trans_add_gl(bd->bd_gl); | 493 | gfs2_trans_add_gl(bd->bd_gl); |
494 | if (gfs2_is_jdata(ip)) { | 494 | if (gfs2_is_jdata(ip)) { |
495 | sdp->sd_log_num_jdata++; | ||
496 | gfs2_pin(sdp, bd->bd_bh); | 495 | gfs2_pin(sdp, bd->bd_bh); |
497 | tr->tr_num_databuf_new++; | 496 | tr->tr_num_databuf_new++; |
498 | } | 497 | } |
499 | gfs2_log_lock(sdp); | 498 | gfs2_log_lock(sdp); |
499 | if (gfs2_is_jdata(ip)) | ||
500 | sdp->sd_log_num_jdata++; | ||
500 | sdp->sd_log_num_databuf++; | 501 | sdp->sd_log_num_databuf++; |
501 | list_add(&le->le_list, &sdp->sd_log_le_databuf); | 502 | list_add(&le->le_list, &sdp->sd_log_le_databuf); |
502 | gfs2_log_unlock(sdp); | 503 | gfs2_log_unlock(sdp); |