aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/log.c2
-rw-r--r--fs/gfs2/lops.c2
-rw-r--r--fs/gfs2/ops_address.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 586923d24e6e..1fb846fc545e 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -566,7 +566,7 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl)
566 INIT_LIST_HEAD(&ai->ai_ail1_list); 566 INIT_LIST_HEAD(&ai->ai_ail1_list);
567 INIT_LIST_HEAD(&ai->ai_ail2_list); 567 INIT_LIST_HEAD(&ai->ai_ail2_list);
568 568
569 gfs2_assert_withdraw(sdp, sdp->sd_log_num_buf == sdp->sd_log_commited_buf); 569 gfs2_assert_withdraw(sdp, sdp->sd_log_num_buf + sdp->sd_log_num_jdata == sdp->sd_log_commited_buf);
570 gfs2_assert_withdraw(sdp, 570 gfs2_assert_withdraw(sdp,
571 sdp->sd_log_num_revoke == sdp->sd_log_commited_revoke); 571 sdp->sd_log_num_revoke == sdp->sd_log_commited_revoke);
572 572
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 {
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index fb84478e1df6..ac5659521386 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -50,6 +50,8 @@ static void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page,
50 end = start + bsize; 50 end = start + bsize;
51 if (end <= from || start >= to) 51 if (end <= from || start >= to)
52 continue; 52 continue;
53 if (gfs2_is_jdata(ip))
54 set_buffer_uptodate(bh);
53 gfs2_trans_add_bh(ip->i_gl, bh, 0); 55 gfs2_trans_add_bh(ip->i_gl, bh, 0);
54 } 56 }
55} 57}