]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: flush speculative space allocations when we run out of space
authorDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:48:39 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:49 +0000 (09:18 -0800)
commitde4c68d8c232e56851c09dc3c64b91fb0aab779c
tree373b32e9a62675fab730b9ae0dbf76021668226b
parent73451cb1af13df97c9565afeb3075a46ba7ef64b
xfs: flush speculative space allocations when we run out of space

If a fs modification (creation, file write, reflink, etc.) is unable to
reserve enough space to handle the modification, try clearing whatever
space the filesystem might have been hanging onto in the hopes of
speeding up the filesystem.  The flushing behavior will become
particularly important when we add deferred inode inactivation because
that will increase the amount of space that isn't actively tied to user
data.

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_trans.c