Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38587
b: refs/heads/master
c: 586dfda
h: refs/heads/master
i:
  38585: 1476d40
  38583: 0be5bd4
v: v3
  • Loading branch information
Steven Whitehouse committed Jan 18, 2006
1 parent ed6f327 commit 7ccd7a0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4e9c4c3bf861ef2ac96e0de659c75a00da92b28
refs/heads/master: 586dfdaaf328d79bb356d760db963b03a75a4131
11 changes: 7 additions & 4 deletions trunk/fs/gfs2/meta_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,13 +537,13 @@ int gfs2_meta_reread(struct gfs2_sbd *sdp, struct buffer_head *bh, int flags)
}

/**
* gfs2_meta_attach_bufdata - attach a struct gfs2_bufdata structure to a buffer
* gfs2_attach_bufdata - attach a struct gfs2_bufdata structure to a buffer
* @gl: the glock the buffer belongs to
* @bh: The buffer to be attached to
*
* @meta: Flag to indicate whether its metadata or not
*/

void gfs2_meta_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh)
void gfs2_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh, int meta)
{
struct gfs2_bufdata *bd;

Expand All @@ -563,7 +563,10 @@ void gfs2_meta_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh)
bd->bd_gl = gl;

INIT_LIST_HEAD(&bd->bd_list_tr);
lops_init_le(&bd->bd_le, &gfs2_buf_lops);
if (meta)
lops_init_le(&bd->bd_le, &gfs2_buf_lops);
else
lops_init_le(&bd->bd_le, &gfs2_databuf_lops);

set_v2bd(bh, bd);

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/gfs2/meta_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int gfs2_meta_read(struct gfs2_glock *gl, uint64_t blkno,
int flags, struct buffer_head **bhp);
int gfs2_meta_reread(struct gfs2_sbd *sdp, struct buffer_head *bh, int flags);

void gfs2_meta_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh);
void gfs2_attach_bufdata(struct gfs2_glock *gl, struct buffer_head *bh, int meta);
void gfs2_meta_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
void gfs2_meta_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh,
struct gfs2_ail *ai);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/gfs2/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void gfs2_trans_add_bh(struct gfs2_glock *gl, struct buffer_head *bh, int meta)
if (bd)
gfs2_assert(sdp, bd->bd_gl == gl);
else {
gfs2_meta_attach_bufdata(gl, bh);
gfs2_attach_bufdata(gl, bh, meta);
bd = get_v2bd(bh);
}

Expand Down

0 comments on commit 7ccd7a0

Please sign in to comment.