summaryrefslogtreecommitdiff
tag namereclaim-space-harder_2020-03-03 (b3600fe6c3ba5e7ef6dd0cc5edc471491e5f2fa7)
tag date2020-03-03 18:48:19 -0800
tagged byDarrick J. Wong <darrick.wong@oracle.com>
tagged objectcommit 5869be8348...
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.