diff mbox series

[RFC,2/2] xfs/306: update resblks to account for increased per-ag reservation size

Message ID 7a1a37011ed851a2dfdb8ff62e9e60236253580a.1723690703.git.kjlx@templeofstupid.com (mailing list archive)
State New, archived
Headers show
Series [RFC,1/2] xfs/608: a test case for xfs_bmap_extents_to_btree allocation failure | expand

Commit Message

Krister Johansen Aug. 15, 2024, 7:40 p.m. UTC
The AGFL reservation patches increase the amount of reserved space that
this test needs in order to succeed.  Modify the resblks xfs_io call to
account for the increased per-AG reservation.

Without this change, the dd in the test gets an ENOSPC in the path where
a delalloc is converted to a real allocation.  This results in the test
spinning in the dd command and generating endless xfs_discard_folio
warnings.

Since resblks is supposed to prevent the filesystem from getting empty
enough to hit a case like this, increase it slightly to account for the
modified per-ag reservation size.

Signed-off-by: Krister Johansen <kjlx@templeofstupid.com>
---
 tests/xfs/306 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/xfs/306 b/tests/xfs/306
index e21a5622..9acace85 100755
--- a/tests/xfs/306
+++ b/tests/xfs/306
@@ -47,7 +47,7 @@  for i in $(seq 0 3); do
 done
 
 # consume and fragment free space
-$XFS_IO_PROG -xc "resblks 16" $SCRATCH_MNT >> $seqres.full 2>&1
+$XFS_IO_PROG -xc "resblks 17" $SCRATCH_MNT >> $seqres.full 2>&1
 dd if=/dev/zero of=$SCRATCH_MNT/file bs=4k >> $seqres.full 2>&1
 $XFS_IO_PROG -c "fsync" $SCRATCH_MNT/file >> $seqres.full 2>&1
 $here/src/punch-alternating $SCRATCH_MNT/file