xfs: test per-ag allocation accounting during truncate-caused refcountbt expansion

Ensure that refcountbt allocations during truncate operations come
from the per-AG reservation and are not charged to the transaction.

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Darrick J. Wong
2016-03-23 17:39:09 +11:00
committed by Dave Chinner
parent 00cbdca930
commit 6243fb41f1
3 changed files with 106 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
QA output created by 265
Create the original file blocks
1: Reflink a bunch of times
1: Truncate files
1: Delete both files
2: Reflink a bunch of times
2: Truncate files
2: Delete both files
x: Reflink a bunch of times
x: Truncate files