summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-05-21 13:01:29 +0100
committerZorro Lang <zlang@kernel.org>2024-05-25 13:57:33 +0800
commit26d69e8df390b701904aac40e7d9cf8edea9a14d (patch)
treeb061bc77e0ba9cf2a7bc0a07030fa07a5a1e8582
parentbe5ec474127b16aced5a77dfbba5c5d200a921fd (diff)
generic/733: add commit ID for btrfs
As of commit 5d6f0e9890ed ("btrfs: stop locking the source extent range during reflink"), btrfs now does reflink operations without locking the source file's range, allowing concurrent reads in the whole source file. So update the test to annotate that commit. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-xtests/generic/73315
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/generic/733 b/tests/generic/733
index d88d92a4..f6ee7f71 100755
--- a/tests/generic/733
+++ b/tests/generic/733
@@ -7,7 +7,8 @@
# Race file reads with a very slow reflink operation to see if the reads
# actually complete while the reflink is ongoing. This is a functionality
# test for XFS commit 14a537983b22 "xfs: allow read IO and FICLONE to run
-# concurrently".
+# concurrently" and for BTRFS commit 5d6f0e9890ed "btrfs: stop locking the
+# source extent range during reflink".
#
. ./common/preamble
_begin_fstest auto clone punch
@@ -26,8 +27,16 @@ _require_test_program "punch-alternating"
_require_test_program "t_reflink_read_race"
_require_command "$TIMEOUT_PROG" timeout
-[ "$FSTYP" = "xfs" ] && _fixed_by_kernel_commit 14a537983b22 \
- "xfs: allow read IO and FICLONE to run concurrently"
+case "$FSTYP" in
+"btrfs")
+ _fixed_by_kernel_commit 5d6f0e9890ed \
+ "btrfs: stop locking the source extent range during reflink"
+ ;;
+"xfs")
+ _fixed_by_kernel_commit 14a537983b22 \
+ "xfs: allow read IO and FICLONE to run concurrently"
+ ;;
+esac
rm -f "$seqres.full"