aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/trans.c
diff options
context:
space:
mode:
authorSteven Whitehouse <steve@chygwyn.com>2006-01-18 08:14:40 -0500
committerSteven Whitehouse <steve@chygwyn.com>2006-01-18 08:14:40 -0500
commit64fb4eb7d4cc9de89f4d9b9061adde46ed3b5641 (patch)
tree973c910cdf963f2e546ef0e8fcc93c16a7c04905 /fs/gfs2/trans.c
parent586dfdaaf328d79bb356d760db963b03a75a4131 (diff)
[GFS2] Remove gfs2_databuf in favour of gfs2_bufdata structure
Removing the gfs2_databuf structure and using gfs2_bufdata instead is a step towards allowing journaling of data without requiring the metadata header on each journaled block. The idea is to merge the code paths for ordered data with that of journaled data, with the log operations in lops.c tacking account of the different types of buffers as they are presented to it. Largely the code path for metadata will be similar too, but obviously through a different set of log operations. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/trans.c')
-rw-r--r--fs/gfs2/trans.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c
index a9df4a34ebad..b014591fa4a4 100644
--- a/fs/gfs2/trans.c
+++ b/fs/gfs2/trans.c
@@ -199,17 +199,17 @@ void gfs2_trans_add_rg(struct gfs2_rgrpd *rgd)
199 199
200void gfs2_trans_add_databuf(struct gfs2_sbd *sdp, struct buffer_head *bh) 200void gfs2_trans_add_databuf(struct gfs2_sbd *sdp, struct buffer_head *bh)
201{ 201{
202 struct gfs2_databuf *db; 202 struct gfs2_bufdata *bd;
203 203
204 db = get_v2db(bh); 204 bd = get_v2bd(bh);
205 if (!db) { 205 if (!bd) {
206 db = kmalloc(sizeof(struct gfs2_databuf), 206 bd = kmalloc(sizeof(struct gfs2_bufdata),
207 GFP_KERNEL | __GFP_NOFAIL); 207 GFP_NOFS | __GFP_NOFAIL);
208 lops_init_le(&db->db_le, &gfs2_databuf_lops); 208 lops_init_le(&bd->bd_le, &gfs2_databuf_lops);
209 get_bh(bh); 209 get_bh(bh);
210 db->db_bh = bh; 210 bd->bd_bh = bh;
211 set_v2db(bh, db); 211 set_v2bd(bh, bd);
212 lops_add(sdp, &db->db_le); 212 lops_add(sdp, &bd->bd_le);
213 } 213 }
214} 214}
215 215