linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/5] xfs: support shrinking free space in the last AG
@ 2021-03-02  2:48 Gao Xiang
  2021-03-02  2:48 ` [PATCH v7 1/5] xfs: update lazy sb counters immediately for resizefs Gao Xiang
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Gao Xiang @ 2021-03-02  2:48 UTC (permalink / raw)
  To: linux-xfs
  Cc: Darrick J. Wong, Brian Foster, Dave Chinner, Christoph Hellwig,
	Eric Sandeen, Gao Xiang

Hi folks,

v6: https://lore.kernel.org/linux-xfs/20210126125621.3846735-1-hsiangkao@redhat.com/

This patchset attempts to support shrinking free space in the last AG.
This version mainly addresses previous review of v6. hope I don't miss
any previous comments. Details in the changelog.

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

changes since v6:
 - rebase on the latest for-next;
 - [1/5] refine the comment (Brian);
 - [2/5] keep `delta' constant as nb - mp->m_sb.sb_dblocks, avoid
         `extent' boolean but introduce `lastag_resetagres' for growfs
         per-AG reservation judgement (Brian, Darrick);
 - [3/5] pass in agno directly for xfs_ag_shrink_space() (Brian);
 - [4/5] fix growfs 1 agcount case (Brian);
 - [4/5] refine xfs_fs_reserve_ag_blocks() in the end only for growfs
         due to mp->m_finobt_nores == false (Brian);
 - [5/5] broadened error tag (Brian, although I think xfs_mod_fdblocks
         shouldn't be triggered then.)

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       | 108 +++++++++++++++++++
 fs/xfs/libxfs/xfs_ag.h       |   2 +
 fs/xfs/libxfs/xfs_ag_resv.c  |   6 +-
 fs/xfs/libxfs/xfs_errortag.h |   4 +-
 fs/xfs/xfs_error.c           |   2 +
 fs/xfs/xfs_fsops.c           | 195 ++++++++++++++++++++++-------------
 fs/xfs/xfs_trans.c           |   1 -
 7 files changed, 242 insertions(+), 76 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-03-04  1:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-02  2:48 [PATCH v7 0/5] xfs: support shrinking free space in the last AG Gao Xiang
2021-03-02  2:48 ` [PATCH v7 1/5] xfs: update lazy sb counters immediately for resizefs Gao Xiang
2021-03-03 18:13   ` Darrick J. Wong
2021-03-02  2:48 ` [PATCH v7 2/5] xfs: hoist out xfs_resizefs_init_new_ags() Gao Xiang
2021-03-02  2:48 ` [PATCH v7 3/5] xfs: introduce xfs_ag_shrink_space() Gao Xiang
2021-03-03 18:19   ` Darrick J. Wong
2021-03-03 23:16     ` Gao Xiang
2021-03-02  2:48 ` [PATCH v7 4/5] xfs: support shrinking unused space in the last AG Gao Xiang
2021-03-03 18:25   ` Darrick J. Wong
2021-03-03 23:19     ` Gao Xiang
2021-03-02  2:48 ` [PATCH v7 5/5] xfs: add error injection for per-AG resv failure Gao Xiang
2021-03-03  0:02   ` [PATCH v7.1 " Gao Xiang
2021-03-03 18:30   ` [PATCH v7 " Darrick J. Wong
2021-03-03 23:11     ` Gao Xiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).