diff options
author | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 06:19:28 -0500 |
---|---|---|
committer | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 06:19:28 -0500 |
commit | d4e9c4c3bf861ef2ac96e0de659c75a00da92b28 (patch) | |
tree | 925ececc725ad5180b9253f732b50c51bfa0754d /fs/gfs2/rgrp.c | |
parent | b96ca4fa4e3b510d528a093a5bac0befbc2ba46d (diff) |
[GFS2] Add an additional argument to gfs2_trans_add_bh()
This adds an extra argument to gfs2_trans_add_bh() to indicate whether the
bh being added to the transaction is metadata or data. Its currently unused
since all existing callers set it to 1 (metadata) but following patches will
make use of it.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 8df6fba20fac..87c80bbce1cf 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -967,7 +967,7 @@ static uint32_t rgblk_search(struct gfs2_rgrpd *rgd, uint32_t goal, | |||
967 | if (gfs2_assert_withdraw(rgd->rd_sbd, x <= length)) | 967 | if (gfs2_assert_withdraw(rgd->rd_sbd, x <= length)) |
968 | blk = 0; | 968 | blk = 0; |
969 | 969 | ||
970 | gfs2_trans_add_bh(rgd->rd_gl, bi->bi_bh); | 970 | gfs2_trans_add_bh(rgd->rd_gl, bi->bi_bh, 1); |
971 | gfs2_setbit(rgd, | 971 | gfs2_setbit(rgd, |
972 | bi->bi_bh->b_data + bi->bi_offset, | 972 | bi->bi_bh->b_data + bi->bi_offset, |
973 | bi->bi_len, blk, new_state); | 973 | bi->bi_len, blk, new_state); |
@@ -1027,7 +1027,7 @@ static struct gfs2_rgrpd *rgblk_free(struct gfs2_sbd *sdp, uint64_t bstart, | |||
1027 | bi->bi_bh->b_data + bi->bi_offset, | 1027 | bi->bi_bh->b_data + bi->bi_offset, |
1028 | bi->bi_len); | 1028 | bi->bi_len); |
1029 | } | 1029 | } |
1030 | gfs2_trans_add_bh(rgd->rd_gl, bi->bi_bh); | 1030 | gfs2_trans_add_bh(rgd->rd_gl, bi->bi_bh, 1); |
1031 | gfs2_setbit(rgd, | 1031 | gfs2_setbit(rgd, |
1032 | bi->bi_bh->b_data + bi->bi_offset, | 1032 | bi->bi_bh->b_data + bi->bi_offset, |
1033 | bi->bi_len, buf_blk, new_state); | 1033 | bi->bi_len, buf_blk, new_state); |
@@ -1066,7 +1066,7 @@ uint64_t gfs2_alloc_data(struct gfs2_inode *ip) | |||
1066 | gfs2_assert_withdraw(sdp, rgd->rd_rg.rg_free); | 1066 | gfs2_assert_withdraw(sdp, rgd->rd_rg.rg_free); |
1067 | rgd->rd_rg.rg_free--; | 1067 | rgd->rd_rg.rg_free--; |
1068 | 1068 | ||
1069 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh); | 1069 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1); |
1070 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); | 1070 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); |
1071 | 1071 | ||
1072 | al->al_alloced++; | 1072 | al->al_alloced++; |
@@ -1111,7 +1111,7 @@ uint64_t gfs2_alloc_meta(struct gfs2_inode *ip) | |||
1111 | gfs2_assert_withdraw(sdp, rgd->rd_rg.rg_free); | 1111 | gfs2_assert_withdraw(sdp, rgd->rd_rg.rg_free); |
1112 | rgd->rd_rg.rg_free--; | 1112 | rgd->rd_rg.rg_free--; |
1113 | 1113 | ||
1114 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh); | 1114 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1); |
1115 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); | 1115 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); |
1116 | 1116 | ||
1117 | al->al_alloced++; | 1117 | al->al_alloced++; |
@@ -1153,7 +1153,7 @@ uint64_t gfs2_alloc_di(struct gfs2_inode *dip) | |||
1153 | rgd->rd_rg.rg_free--; | 1153 | rgd->rd_rg.rg_free--; |
1154 | rgd->rd_rg.rg_dinodes++; | 1154 | rgd->rd_rg.rg_dinodes++; |
1155 | 1155 | ||
1156 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh); | 1156 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1); |
1157 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); | 1157 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); |
1158 | 1158 | ||
1159 | al->al_alloced++; | 1159 | al->al_alloced++; |
@@ -1187,7 +1187,7 @@ void gfs2_free_data(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen) | |||
1187 | 1187 | ||
1188 | rgd->rd_rg.rg_free += blen; | 1188 | rgd->rd_rg.rg_free += blen; |
1189 | 1189 | ||
1190 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh); | 1190 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1); |
1191 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); | 1191 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); |
1192 | 1192 | ||
1193 | gfs2_trans_add_rg(rgd); | 1193 | gfs2_trans_add_rg(rgd); |
@@ -1216,7 +1216,7 @@ void gfs2_free_meta(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen) | |||
1216 | 1216 | ||
1217 | rgd->rd_rg.rg_free += blen; | 1217 | rgd->rd_rg.rg_free += blen; |
1218 | 1218 | ||
1219 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh); | 1219 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1); |
1220 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); | 1220 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); |
1221 | 1221 | ||
1222 | gfs2_trans_add_rg(rgd); | 1222 | gfs2_trans_add_rg(rgd); |
@@ -1242,7 +1242,7 @@ void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, uint64_t blkno) | |||
1242 | rgd->rd_rg.rg_dinodes--; | 1242 | rgd->rd_rg.rg_dinodes--; |
1243 | rgd->rd_rg.rg_free++; | 1243 | rgd->rd_rg.rg_free++; |
1244 | 1244 | ||
1245 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh); | 1245 | gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1); |
1246 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); | 1246 | gfs2_rgrp_out(&rgd->rd_rg, rgd->rd_bits[0].bi_bh->b_data); |
1247 | 1247 | ||
1248 | gfs2_statfs_change(sdp, 0, +1, -1); | 1248 | gfs2_statfs_change(sdp, 0, +1, -1); |