aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2011-09-01 11:36:44 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2011-10-21 07:39:36 -0400
commit534029e2fd06ac9a5a1b33b2735e3ac3242adb29 (patch)
tree601705fb117963ae27a18f4c27d7de6ac83675b5 /fs
parent54335b1fca27b84baa75b1f45985d98262003837 (diff)
GFS2: Remove obsolete assert
Given that a resource group has been locked, there is no reason why we should not be able to allocate as many blocks as are free. The al_requested parameter should really be considered as a minimum number of blocks to be available. Should this limit be overshot, there are other mechanisms which will prevent over allocation. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/rgrp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 5bfb97002c2a..08b3a8002aca 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -1077,15 +1077,8 @@ int gfs2_inplace_reserve_i(struct gfs2_inode *ip,
1077 1077
1078void gfs2_inplace_release(struct gfs2_inode *ip) 1078void gfs2_inplace_release(struct gfs2_inode *ip)
1079{ 1079{
1080 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
1081 struct gfs2_alloc *al = ip->i_alloc; 1080 struct gfs2_alloc *al = ip->i_alloc;
1082 1081
1083 if (gfs2_assert_warn(sdp, al->al_alloced <= al->al_requested) == -1)
1084 fs_warn(sdp, "al_alloced = %u, al_requested = %u "
1085 "al_file = %s, al_line = %u\n",
1086 al->al_alloced, al->al_requested, al->al_file,
1087 al->al_line);
1088
1089 if (al->al_rgd_gh.gh_gl) 1082 if (al->al_rgd_gh.gh_gl)
1090 gfs2_glock_dq_uninit(&al->al_rgd_gh); 1083 gfs2_glock_dq_uninit(&al->al_rgd_gh);
1091} 1084}