xfs: test delalloc quota leak when chprojid fails

This is a regression test for a bug in the XFS implementation of
FSSETXATTR.  When we try to change a file's project id, the quota
reservation code will update the incore quota reservations for delayed
allocation blocks.  Unfortunately, it does this before we finish
validating all the FSSETXATTR parameters, which means that if we decide
to bail out, we also fail to undo the incore changes.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Darrick J. Wong
2021-03-08 20:40:58 -08:00
committed by Eryu Guan
parent 01b30c9da9
commit f6ddaf130d
6 changed files with 170 additions and 1 deletions
+1
View File
@@ -142,6 +142,7 @@
142 auto quick rw attr realtime
143 auto quick realtime mount
144 auto quick quota
145 auto quick quota
148 auto quick fuzzers
149 auto quick growfs
164 rw pattern auto prealloc quick