diff options
author | Gao Xiang <hsiangkao@redhat.com> | 2021-03-24 05:05:39 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-03-26 02:47:52 +0300 |
commit | fb2fc172018599a6564aab4ac0dce79bf94bd6bc (patch) | |
tree | b96fdb56b7752dc81416932b55191a1b79e32400 /fs/xfs/libxfs/xfs_ag_resv.c | |
parent | 46141dc891f7d28cc5cac473ad1a54a312c021c1 (diff) | |
download | linux-fb2fc172018599a6564aab4ac0dce79bf94bd6bc.tar.xz |
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/libxfs/xfs_ag_resv.c')
0 files changed, 0 insertions, 0 deletions