tag name | reclaim-space-harder_2019-10-09 (9a0a6d637a3d27ad46e2d50e03a755bf9a971783) |
tag date | 2019-10-09 09:47:00 -0700 |
tagged by | Darrick J. Wong <darrick.wong@oracle.com> |
tagged object | commit 700899d7c7... |
xfs: try harder to reclaim space when we run out
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.