btrfs: make nospace_cache related test cases to work with latest v2 cache
[xfstests-dev.git] / tests / btrfs / 141
index cf0979e9b42add08d02f07dc91d6369adbab8aeb..ca164fdc95e5ebe8d64135110399b61b2007c335 100755 (executable)
@@ -59,9 +59,8 @@ _check_minimal_fs_size $(( 1024 * 1024 * 1024 ))
 mkfs_opts="-d raid1 -b 1G"
 _scratch_pool_mkfs $mkfs_opts >>$seqres.full 2>&1
 
-# -o nospace_cache makes sure data is written to the start position of the data
-# chunk
-_scratch_mount -o nospace_cache
+# make sure data is written to the start position of the data chunk
+_scratch_mount $(_btrfs_no_v1_cache_opt)
 
 $XFS_IO_PROG -f -d -c "pwrite -S 0xaa -b 128K 0 128K" "$SCRATCH_MNT/foobar" |\
        _filter_xfs_io_offset