aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-06-19 10:51:11 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-06-19 10:51:11 -0400
commitb61dde795f120f5dca2c865a1860dd9ff76705a1 (patch)
tree5757a1fdab5598e0284d280fbac32e8db0bf04e8 /fs
parent2b3d6e2f23362b71de173649002d915d14e07622 (diff)
[GFS2] Always include glock in transaction
Include the glock in the transaction, even when not journaling data in order that ordered write data will be correctly flushed when the lock is released. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/lops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c
index 93563e72ae49..af03bf380f46 100644
--- a/fs/gfs2/lops.c
+++ b/fs/gfs2/lops.c
@@ -467,11 +467,11 @@ static void databuf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
467 if (!list_empty(&bd->bd_list_tr) && 467 if (!list_empty(&bd->bd_list_tr) &&
468 (ip->i_di.di_flags & GFS2_DIF_JDATA)) { 468 (ip->i_di.di_flags & GFS2_DIF_JDATA)) {
469 tr->tr_num_buf++; 469 tr->tr_num_buf++;
470 gfs2_trans_add_gl(bd->bd_gl);
471 list_add(&bd->bd_list_tr, &tr->tr_list_buf); 470 list_add(&bd->bd_list_tr, &tr->tr_list_buf);
472 gfs2_pin(sdp, bd->bd_bh); 471 gfs2_pin(sdp, bd->bd_bh);
473 tr->tr_num_buf_new++; 472 tr->tr_num_buf_new++;
474 } 473 }
474 gfs2_trans_add_gl(bd->bd_gl);
475 gfs2_log_lock(sdp); 475 gfs2_log_lock(sdp);
476 if (!list_empty(&le->le_list)) { 476 if (!list_empty(&le->le_list)) {
477 if (ip->i_di.di_flags & GFS2_DIF_JDATA) 477 if (ip->i_di.di_flags & GFS2_DIF_JDATA)