aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/lops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/lops.c')
-rw-r--r--fs/gfs2/lops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c
index f82d84d05d23..3e971f25120d 100644
--- a/fs/gfs2/lops.c
+++ b/fs/gfs2/lops.c
@@ -475,6 +475,8 @@ static void databuf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
475 tr->tr_num_buf++; 475 tr->tr_num_buf++;
476 list_add(&bd->bd_list_tr, &tr->tr_list_buf); 476 list_add(&bd->bd_list_tr, &tr->tr_list_buf);
477 gfs2_log_unlock(sdp); 477 gfs2_log_unlock(sdp);
478 if (!list_empty(&le->le_list))
479 return;
478 gfs2_pin(sdp, bd->bd_bh); 480 gfs2_pin(sdp, bd->bd_bh);
479 tr->tr_num_buf_new++; 481 tr->tr_num_buf_new++;
480 } else { 482 } else {