diff options
| author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-08 23:04:20 -0800 |
|---|---|---|
| committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-11 12:42:52 -0800 |
| commit | 2815a16d7ff6230a8e37928829d221bb075aa160 (patch) | |
| tree | d2379eb1646e00e8e8b3c3c6d380a4678b4c400e /lib/mpi/mpiutil.c | |
| parent | 27d9ee577dccec94fb0fc1a14728de64db342f86 (diff) | |
xfs: attach dquots and reserve quota blocks during unwritten conversion
In xfs_iomap_write_unwritten, we need to ensure that dquots are attached
to the inode and quota blocks reserved so that we capture in the quota
counters any blocks allocated to handle a bmbt split. This can happen
on the first unwritten extent conversion to a preallocated sparse file
on a fresh mount.
This was found by running generic/311 with quotas enabled. The bug
seems to have been introduced in "[XFS] rework iocore infrastructure,
remove some code and make it more" from ~2002?
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
