[0/6] xfs: consolidate posteof and cowblocks cleanup
mbox series

Message ID 157784087594.1361683.5987233633798863051.stgit@magnolia
Headers show
  • xfs: consolidate posteof and cowblocks cleanup
Related show


Darrick J. Wong Jan. 1, 2020, 1:07 a.m. UTC
Hi all,

Currently, we treat the garbage collection of post-EOF preallocations
and copy-on-write preallocations as totally separate tasks -- different
incore inode tags, different workqueues, etc.  This is wasteful of radix
tree tags and workqueue resources since we effectively have parallel
code paths to do the same thing.

Therefore, consolidate both functions under one radix tree bit and one
workqueue function that scans an inode for both things at the same time.
At the end of the series we make the scanning per-AG instead of per-fs
so that the scanning can run in parallel.

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:

fstests git tree: