aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/meta_io.c
diff options
context:
space:
mode:
authorSteven Whitehouse <steve@chygwyn.com>2006-01-18 06:32:00 -0500
committerSteven Whitehouse <steve@chygwyn.com>2006-01-18 06:32:00 -0500
commit586dfdaaf328d79bb356d760db963b03a75a4131 (patch)
tree0e406d7eecb79bf79e8110600923b89b12dd7b6f /fs/gfs2/meta_io.c
parentd4e9c4c3bf861ef2ac96e0de659c75a00da92b28 (diff)
[GFS2] Make the new argument to gfs2_trans_add_bh() actually do something
Passes the flag through to ensure that the correct log operations are invoked when the flag is set. Signed-off-by: Steven Whitehouse: <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/meta_io.c')
-rw-r--r--fs/gfs2/meta_io.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index 8bbe11855223..134f31efe515 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -537,13 +537,13 @@ int gfs2_meta_reread(struct gfs2_sbd *sdp, struct buffer_head *bh, int flags)
537} 537}
538 538
539/** 539/**
540 * gfs2_meta_attach_bufdata - attach a struct gfs2_bufdata structure to a buffer 540 * gfs2_attach_bufdata - attach a struct gfs2_bufdata structure to a buffer
541 * @gl: the glock the buffer belongs to 541 * @gl: the glock the buffer belongs to
542 * @bh: The buffer to be attached to 542 * @bh: The buffer to be attached to
543 * 543 * @meta: Flag to indicate whether its metadata or not
544 */ 544 */
545 545
546void gfs2_meta_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh) 546void gfs2_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh, int meta)
547{ 547{
548 struct gfs2_bufdata *bd; 548 struct gfs2_bufdata *bd;
549 549
@@ -563,7 +563,10 @@ void gfs2_meta_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh)
563 bd->bd_gl = gl; 563 bd->bd_gl = gl;
564 564
565 INIT_LIST_HEAD(&bd->bd_list_tr); 565 INIT_LIST_HEAD(&bd->bd_list_tr);
566 lops_init_le(&bd->bd_le, &gfs2_buf_lops); 566 if (meta)
567 lops_init_le(&bd->bd_le, &gfs2_buf_lops);
568 else
569 lops_init_le(&bd->bd_le, &gfs2_databuf_lops);
567 570
568 set_v2bd(bh, bd); 571 set_v2bd(bh, bd);
569 572