]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: reduce quota reservation when doing a dax unwritten extent conversion
authorDarrick J. Wong <djwong@kernel.org>
Thu, 28 Jan 2021 18:56:38 +0000 (10:56 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:48 +0000 (09:18 -0800)
commit7962335606691822110b3fdce2320e1f9550f9eb
treee887774dc108fefb829405763bb91ebba6c68abe
parentce737d39466e8952e88a13b9ad0b46b0b5b78a88
xfs: reduce quota reservation when doing a dax unwritten extent conversion

In commit 8d5945b75bbf3, we reduced the free space requirement to
perform a pre-write unwritten extent conversion on an S_DAX file.  Since
we're not actually allocating any space, the logic goes, we only need
enough reservation to handle shape changes in the bmbt.

The same logic should have been applied to quota -- we're not allocating
any space, so we only need to reserve enough quota to handle the bmbt
shape changes.

Fixes: 8d5945b75bbf ("xfs: Don't use reserved blocks for data blocks with DAX")
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_iomap.c