mbox series

[PATCHSET,0/2] xfs: make xfs_can_free_eofblocks a predicate

Message ID 161610680641.1887542.10509468263256161712.stgit@magnolia (mailing list archive)
Headers show
Series xfs: make xfs_can_free_eofblocks a predicate | expand


Darrick J. Wong March 18, 2021, 10:33 p.m. UTC
Hi all,

The two patches in this set reorganize the responsibilities between
xfs_can_free_eofblocks and xfs_free_eofblocks so that the first becomes
a true predicate, and the second becomes a simple update function.  The
goal is to be able to use the predicate to decide if a linked but
unopened inode has speculative post-EOF preallocations and hence must go
through the extra inactivation step.

This requires a slight change in behavior of the background block gc
workers, which will try to take the IOLOCK before calling the predicate.

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.


kernel git tree:
 fs/xfs/xfs_bmap_util.c |  148 +++++++++++++++++++++++++-----------------------
 fs/xfs/xfs_icache.c    |   12 +---
 2 files changed, 82 insertions(+), 78 deletions(-)