public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] xfsprogs: add a inode btree blocks counts to the AGI header
@ 2020-08-17 22:58 Darrick J. Wong
  2020-08-17 22:58 ` [PATCH 1/7] xfs: store inode btree block counts in " Darrick J. Wong
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Darrick J. Wong @ 2020-08-17 22:58 UTC (permalink / raw)
  To: sandeen, darrick.wong; +Cc: linux-xfs

Hi all,

Years ago, Christoph diagnosed a problem where freeing an inode on a
totally full filesystem could fail due to finobt expansion not being
able to allocate enough blocks.  He solved the problem by using the
per-AG block reservation system to ensure that there are always enough
blocks for finobt expansion, but that came at the cost of having to walk
the entire finobt at mount time.  This new feature solves that
performance regression by adding inode btree block counts to the AGI
header.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=inobt-counters

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=inobt-counters
---
 db/agi.c                  |    2 +
 db/sb.c                   |   75 +++++++++++++++++++++++++++++++++++++++++++
 db/xfs_admin.sh           |    4 ++
 libxfs/xfs_ag.c           |    4 ++
 libxfs/xfs_format.h       |   22 ++++++++++++-
 libxfs/xfs_ialloc.c       |    1 +
 libxfs/xfs_ialloc_btree.c |   78 +++++++++++++++++++++++++++++++++++++++++----
 man/man8/mkfs.xfs.8       |   15 +++++++++
 man/man8/xfs_admin.8      |   16 +++++++++
 mkfs/xfs_mkfs.c           |   27 +++++++++++++++-
 repair/phase5.c           |    5 +++
 repair/scan.c             |   38 ++++++++++++++++++++--
 12 files changed, 272 insertions(+), 15 deletions(-)


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

end of thread, other threads:[~2020-08-18 15:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-17 22:58 [PATCH 0/7] xfsprogs: add a inode btree blocks counts to the AGI header Darrick J. Wong
2020-08-17 22:58 ` [PATCH 1/7] xfs: store inode btree block counts in " Darrick J. Wong
2020-08-17 22:58 ` [PATCH 2/7] xfs_db: support displaying " Darrick J. Wong
2020-08-17 22:58 ` [PATCH 3/7] xfs_db: add bigtime upgrade path Darrick J. Wong
2020-08-18 14:14   ` Amir Goldstein
2020-08-18 15:19     ` Darrick J. Wong
2020-08-17 22:58 ` [PATCH 4/7] xfs_repair: check inode btree block counters in AGI Darrick J. Wong
2020-08-17 22:58 ` [PATCH 5/7] xfs_repair: regenerate " Darrick J. Wong
2020-08-17 22:58 ` [PATCH 6/7] xfs: enable new inode btree counters feature Darrick J. Wong
2020-08-17 22:58 ` [PATCH 7/7] mkfs: enable the inode btree counter feature Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox