From: Robbie Ko Date: Thu, 26 Oct 2017 06:02:15 +0000 (+0800) Subject: btrfs/010: fix offset in test Btrfs delalloc accounting overflow X-Git-Tag: v2022.05.01~1815 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=23e7ba4e10472cf29f9ddd476b916277a617c754;p=users%2Fhch%2Fxfstests-dev.git btrfs/010: fix offset in test Btrfs delalloc accounting overflow Found it when test btrfs delalloc accounting overflow, Fix offset error. We will fill in the gaps between the created extents, then outstanding extents will all be merged into 1. Signed-off-by: Robbie Ko Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/btrfs/010 b/tests/btrfs/010 index ea201ad2e..00cac6739 100755 --- a/tests/btrfs/010 +++ b/tests/btrfs/010 @@ -58,7 +58,7 @@ done # Fill in the gaps between the created extents. The outstanding extents will # all be merged into 1, but there will still be 32k reserved. for ((i = 0; i < 32 * 1024; i++)); do - $XFS_IO_PROG -f -c "pwrite $((2 * 4096 * i + 1)) 4096" "$test_file" >>"$seqres.full" + $XFS_IO_PROG -f -c "pwrite $((2 * 4096 * i + 4096)) 4096" "$test_file" >>"$seqres.full" done # Flush the delayed allocations.