btrfs/130: make it workable on small systems
authorAnand Jain <anand.jain@oracle.com>
Tue, 17 Apr 2018 14:56:40 +0000 (22:56 +0800)
committerEryu Guan <guaneryu@gmail.com>
Tue, 24 Apr 2018 09:49:05 +0000 (17:49 +0800)
This test case takes a long time to complete at the default
LOAD_FACTOR=1, so reduce the nr_extents to 256, so for larger
systems it can still use higher LOAD_FACTOR.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/130

index 96c8f9d9d526c2d8584aab5ed27c0aeef12ea9a4..05f92c11a99806d8e7b5f3eb216d2d989b07d8e5 100755 (executable)
@@ -60,7 +60,7 @@ _require_scratch_reflink
 _scratch_mkfs > /dev/null 2>&1
 _scratch_mount
 
-nr_extents=$((4096 * $LOAD_FACTOR))
+nr_extents=$((256 * $LOAD_FACTOR))
 
 # Use 128K blocksize, the default value of both deduperemove or
 # inband dedupe