summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@redhat.com>2021-03-23 19:05:38 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-03-25 16:47:52 -0700
commit46141dc891f7d28cc5cac473ad1a54a312c021c1 (patch)
treee775ec395c3bc64b7cf4329aaf093d6766909bbc /fs/xfs/xfs_trans.c
parentc789c83c7ef8f98f9f6f0864ce6a58dc4c4012d1 (diff)
downloadlinux-46141dc891f7d28cc5cac473ad1a54a312c021c1.tar.gz
xfs: introduce xfs_ag_shrink_space()
This patch introduces a helper to shrink unused space in the last AG by fixing up the freespace btree. Also make sure that the per-AG reservation works under the new AG size. If such per-AG reservation or extent allocation fails, roll the transaction so the new transaction could cancel without any side effects. 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')
0 files changed, 0 insertions, 0 deletions