]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: xfs_inode_free_quota_blocks should scan project quota
authorDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:48:35 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:49 +0000 (09:18 -0800)
commit0ab8151463884caedd1c5925a79c2eb7a711a6d8
tree580bec56056ddf0333f261f5da574603f618bd01
parent1b6316dd14d612ae4e12d09e45d367b232c4c7d2
xfs: xfs_inode_free_quota_blocks should scan project quota

Buffered writers who have run out of quota reservation call
xfs_inode_free_quota_blocks to try to free any space reservations that
might reduce the quota usage.  Unfortunately, the buffered write path
treats "out of project quota" the same as "out of overall space" so this
function has never supported scanning for space that might ease an "out
of project quota" condition.

We're about to start using this function for cases where we actually
/can/ tell if we're out of project quota, so add in this functionality.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_icache.c