mbox series

[v4,0/5] xfs: add inode btree blocks counters to the AGI header

Message ID 159901535219.547164.1381621861988558776.stgit@magnolia (mailing list archive)
Headers show
Series xfs: add inode btree blocks counters to the AGI header | expand

Message

Darrick J. Wong Sept. 2, 2020, 2:55 a.m. UTC
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.

v2: rebase kernel to 5.9
v3: split logical changes into separate patches
v4: support inobtcounts && !finobt properly

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
---
 fs/xfs/libxfs/xfs_ag.c           |    5 +++
 fs/xfs/libxfs/xfs_format.h       |   21 +++++++++++-
 fs/xfs/libxfs/xfs_ialloc.c       |    1 +
 fs/xfs/libxfs/xfs_ialloc_btree.c |   68 ++++++++++++++++++++++++++++++++++++--
 fs/xfs/scrub/agheader.c          |   30 +++++++++++++++++
 fs/xfs/scrub/agheader_repair.c   |   24 +++++++++++++
 fs/xfs/xfs_ondisk.h              |    2 +
 fs/xfs/xfs_super.c               |    4 ++
 8 files changed, 148 insertions(+), 7 deletions(-)