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 to 5.9 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 | 4 ++ fs/xfs/libxfs/xfs_format.h | 22 ++++++++++- fs/xfs/libxfs/xfs_ialloc.c | 1 fs/xfs/libxfs/xfs_ialloc_btree.c | 78 +++++++++++++++++++++++++++++++++++--- fs/xfs/scrub/agheader.c | 30 +++++++++++++++ fs/xfs/scrub/agheader_repair.c | 17 ++++++++ fs/xfs/xfs_ondisk.h | 2 - fs/xfs/xfs_super.c | 4 ++ 8 files changed, 148 insertions(+), 10 deletions(-)