]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: treat CoW fork operations as delalloc for quota accounting
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Feb 2018 04:43:19 +0000 (22:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Feb 2018 04:43:19 +0000 (22:43 -0600)
commitd07cc7245eaaebd6a9073936965a4d9737773ccb
tree8ad3237f3dfb0d3fb9d7a3ddea920081e0a68607
parent3cb68815a885ca9c39e7d288ed6f4bd026b22b9c
xfs: treat CoW fork operations as delalloc for quota accounting

Source kernel commit: 4b4c1326fd7c7210d23d9dd3bfc51f2b6477bb9e

Since the CoW fork only exists in memory, it is incorrect to update the
on-disk quota block counts when we modify the CoW fork.  Unlike the data
fork, even real extents in the CoW fork are only delalloc-style
reservations (on-disk they're owned by the refcountbt) so they must not
be tracked in the on disk quota info.  Ensure the i_delayed_blks
accounting reflects this too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c