summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@redhat.com>2021-03-23 19:05:39 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 16:47:52 -0700
commitfb2fc172018599a6564aab4ac0dce79bf94bd6bc (patch)
treeb96fdb56b7752dc81416932b55191a1b79e32400 /fs/xfs/xfs_trans.c
parent46141dc891f7d28cc5cac473ad1a54a312c021c1 (diff)
xfs: support shrinking unused space in the last AG
As the first step of shrinking, this attempts to enable shrinking unused space in the last allocation group by fixing up freespace btree, agi, agf and adjusting super block and use a helper xfs_ag_shrink_space() to fixup the last AG. This can be all done in one transaction for now, so I think no additional protection is needed. Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Gao Xiang <hsiangkao@redhat.com> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r--fs/xfs/xfs_trans.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c
index 631cca73198f..bc25afc10245 100644
--- a/fs/xfs/xfs_trans.c
+++ b/fs/xfs/xfs_trans.c
@@ -436,7 +436,6 @@ xfs_trans_mod_sb(
tp->t_res_frextents_delta += delta;
break;
case XFS_TRANS_SB_DBLOCKS:
- ASSERT(delta > 0);
tp->t_dblocks_delta += delta;
break;
case XFS_TRANS_SB_AGCOUNT: