On Thu, May 14, 2020 at 04:43:36PM -0500, Eric Sandeen wrote: > + if (ret == -EDQUOT || > + (ret == -ENOSPC && ip->i_pdquot && > + XFS_IS_PQUOTA_ENFORCED(mp) && ip->i_pdquot)) { > + xfs_iunlock(ip, iolock); > + enospc |= xfs_inode_free_quota_eofblocks(ip); > + enospc |= xfs_inode_free_quota_cowblocks(ip); > + iolock = 0; Fun fact of the day: xfs_inode_free_quota_eofblocks and xfs_inode_free_quota_cowblocks don't actually do anything for project quotas. I've started to prepare a little cleanup series to help implementing what you want. Give me some time to do a quick test run and send it out.