aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_address.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/ops_address.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/ops_address.c')
-rw-r--r--fs/gfs2/ops_address.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index d352b3528f5e..db66d3287550 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -429,13 +429,13 @@ static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock)
429 429
430static void discard_buffer(struct gfs2_sbd *sdp, struct buffer_head *bh) 430static void discard_buffer(struct gfs2_sbd *sdp, struct buffer_head *bh)
431{ 431{
432 struct gfs2_databuf *db; 432 struct gfs2_bufdata *bd;
433 433
434 gfs2_log_lock(sdp); 434 gfs2_log_lock(sdp);
435 db = get_v2db(bh); 435 bd = get_v2bd(bh);
436 if (db) { 436 if (bd) {
437 db->db_bh = NULL; 437 bd->bd_bh = NULL;
438 set_v2db(bh, NULL); 438 set_v2bd(bh, NULL);
439 gfs2_log_unlock(sdp); 439 gfs2_log_unlock(sdp);
440 brelse(bh); 440 brelse(bh);
441 } else 441 } else