aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2011-11-16 17:50:37 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2011-11-18 04:49:51 -0500
commitb9f417f311a7141d0ba67e5c8e535010d2712f2d (patch)
treee9c74a8bd5958d9f4f39eb0da25e3ca16f0c17ee /fs/gfs2
parent3c5d785acfda7dffa63477951bb6864c6a49ed2e (diff)
GFS2: remove vestigial al_alloced
This patch removes the vestigial variable al_alloced from the gfs2_alloc structure. This is another baby step toward multi-block reservations. My next planned step is to decouple the quota variables from the gfs2_alloc structure so we can use a different method for allocations. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/incore.h1
-rw-r--r--fs/gfs2/rgrp.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 7389dfdcc9ef..32f5beccb74b 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -251,7 +251,6 @@ struct gfs2_alloc {
251 unsigned int al_qd_num; 251 unsigned int al_qd_num;
252 252
253 u32 al_requested; /* Filled in by caller of gfs2_inplace_reserve() */ 253 u32 al_requested; /* Filled in by caller of gfs2_inplace_reserve() */
254 u32 al_alloced; /* Filled in by gfs2_alloc_*() */
255 254
256 /* Filled in by gfs2_inplace_reserve() */ 255 /* Filled in by gfs2_inplace_reserve() */
257 struct gfs2_holder al_rgd_gh; 256 struct gfs2_holder al_rgd_gh;
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 995f4e674489..855597abc5e7 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -1372,8 +1372,6 @@ int gfs2_alloc_block(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
1372 gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1); 1372 gfs2_trans_add_bh(rgd->rd_gl, rgd->rd_bits[0].bi_bh, 1);
1373 gfs2_rgrp_out(rgd, rgd->rd_bits[0].bi_bh->b_data); 1373 gfs2_rgrp_out(rgd, rgd->rd_bits[0].bi_bh->b_data);
1374 1374
1375 al->al_alloced += *n;
1376
1377 gfs2_statfs_change(sdp, 0, -(s64)*n, dinode ? 1 : 0); 1375 gfs2_statfs_change(sdp, 0, -(s64)*n, dinode ? 1 : 0);
1378 if (dinode) 1376 if (dinode)
1379 gfs2_trans_add_unrevoke(sdp, block, 1); 1377 gfs2_trans_add_unrevoke(sdp, block, 1);