mbox series

[v8,0/5] xfs: support shrinking free space in the last AG

Message ID 20210305025703.3069469-1-hsiangkao@redhat.com (mailing list archive)
Headers show
Series xfs: support shrinking free space in the last AG | expand

Message

Gao Xiang March 5, 2021, 2:56 a.m. UTC
Hi folks,

v6: https://lore.kernel.org/r/20210302024816.2525095-1-hsiangkao@redhat.com

This patchset attempts to support shrinking free space in the last AG.
This version mainly addresses previous review of v7. Hope I don't miss
previous comments...

gitweb:
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/ tags/xfs/shrink_lastag_v8

changes since v7:
 - [3/5] rename `len' to `delta' (Darrick);
 - [3/5] add agi->length vs `delta' check (Darrick);
 - [4/5] drop an necessary blank line (Darrick).
 - Also xfs_errortag_random_default has been fixed in [5/5].

Thanks for the time!

Thanks,
Gao Xiang

xfsprogs: https://lore.kernel.org/r/20201028114010.545331-1-hsiangkao@redhat.com
xfstests: https://lore.kernel.org/r/20201028230909.639698-1-hsiangkao@redhat.com

Gao Xiang (5):
  xfs: update lazy sb counters immediately for resizefs
  xfs: hoist out xfs_resizefs_init_new_ags()
  xfs: introduce xfs_ag_shrink_space()
  xfs: support shrinking unused space in the last AG
  xfs: add error injection for per-AG resv failure

 fs/xfs/libxfs/xfs_ag.c       | 111 ++++++++++++++++++++
 fs/xfs/libxfs/xfs_ag.h       |   4 +-
 fs/xfs/libxfs/xfs_ag_resv.c  |   6 +-
 fs/xfs/libxfs/xfs_errortag.h |   4 +-
 fs/xfs/xfs_error.c           |   3 +
 fs/xfs/xfs_fsops.c           | 196 ++++++++++++++++++++++-------------
 fs/xfs/xfs_trans.c           |   1 -
 7 files changed, 247 insertions(+), 78 deletions(-)