[v2,0/6] xfs: try harder to reclaim space when we run out
mbox series

Message ID 157784083298.1361522.7064886067520069080.stgit@magnolia
Headers show
  • xfs: try harder to reclaim space when we run out
Related show


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

Historically, when users ran out of space or quota when trying to write
to the filesystem, XFS didn't try very hard to reclaim space that it
might have been hanging onto for the purpose of speeding up front-end
filesystem operations (appending writes, cow staging).  The upcoming
deferred inactivation series will greatly increase the amount of
allocated space that isn't actively being used to store user data.

Therefore, try to reduce the circumstances where we return EDQUOT or
ENOSPC to userspace by teaching the write paths to try to clear space
and retry the operation one time before giving up.

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: