]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
btrfs: add missing _fixed_by_kernel_commit for a few tests
authorAnand Jain <anand.jain@oracle.com>
Thu, 21 Sep 2023 05:22:16 +0000 (13:22 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 22 Sep 2023 18:23:28 +0000 (02:23 +0800)
A few tests were still using the older style of mentioning the fix in the
comment section. This patch migrates them to using
_fixed_by_kernel_commit.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/199
tests/btrfs/216
tests/btrfs/218
tests/btrfs/225
tests/btrfs/238

index 709ad1f988c3d2cfe81a231bf26e0ac1dafab705..a4920b99ef97ec2079e3da3aff82388ff5c2113c 100755 (executable)
@@ -12,9 +12,6 @@
 # There is a long existing bug that btrfs doesn't discard all space for
 # above mentioned case.
 #
-# The fix is: "btrfs: extent-tree: Ensure we trim ranges across block group
-# boundary"
-#
 . ./common/preamble
 _begin_fstest auto quick trim fiemap
 
@@ -34,6 +31,9 @@ _cleanup()
 
 # Modify as appropriate.
 _supported_fs btrfs
+_fixed_by_kernel_commit 6b7faadd985c \
+       "btrfs: Ensure we trim ranges across block group boundary"
+
 _require_loop
 _require_xfs_io_command "fiemap"
 
index 2ed4866887f745719fd38c090581856e680f4523..979dcb73f09742aa637ad82512dc44b395cefe3d 100755 (executable)
@@ -6,8 +6,6 @@
 #
 # Test if the show_devname() returns sprout device instead of seed device.
 #
-# Fixed in kernel patch:
-#   btrfs: btrfs_show_devname don't traverse into the seed fsid
 
 . ./common/preamble
 _begin_fstest auto quick seed
@@ -17,6 +15,8 @@ _begin_fstest auto quick seed
 
 # real QA test starts here
 _supported_fs btrfs
+_fixed_by_kernel_commit 4faf55b03823 \
+       "btrfs: don't traverse into the seed devices in show_devname"
 _require_scratch_dev_pool 2
 
 _scratch_dev_pool_get 2
index 672ad0ff61f078d636dc2a4cedf3ecd227bc833d..b0434834ff653690e9de2000b07d7e6ff6b7cc72 100755 (executable)
@@ -4,10 +4,6 @@
 #
 # FS QA Test 218
 #
-# Regression test for the problem fixed by the patch
-#
-#  btrfs: init device stats for seed devices
-#
 # Make a seed device, add a sprout to it, and then make sure we can still read
 # the device stats for both devices after we remount with the new sprout device.
 #
@@ -22,6 +18,8 @@ _begin_fstest auto quick volume
 
 # Modify as appropriate.
 _supported_fs btrfs
+_fixed_by_kernel_commit 124604eb50f8 \
+       "btrfs: init device stats for seed devices"
 _require_test
 _require_scratch_dev_pool 2
 
index cfb64a342644e4090aa2df87e966f841323ce963..677c162cb63aec78cc150ae549d3e3a29c6e9a4e 100755 (executable)
@@ -5,8 +5,6 @@
 # FS QA Test 225
 #
 # Test for seed device-delete on a sprouted FS.
-# Requires kernel patch
-#    b5ddcffa3777  btrfs: fix put of uninitialized kobject after seed device delete
 #
 # Steps:
 #  Create a seed FS. Add a RW device to make it sprout FS and then delete
@@ -30,6 +28,8 @@ _cleanup()
 
 # Modify as appropriate.
 _supported_fs btrfs
+_fixed_by_kernel_commit b5ddcffa3777 \
+       "btrfs: fix put of uninitialized kobject after seed device delete"
 _require_test
 _require_scratch_dev_pool 2
 _require_btrfs_forget_or_module_loadable
index 57245917e16a7d42f748d68552bc56e52262677a..3a711ea7a1a829dc89a9775861968296222587b8 100755 (executable)
@@ -6,9 +6,6 @@
 #
 # Check seed device integrity after fstrim on the sprout device.
 #
-#  Kernel bug is fixed by the commit:
-#    btrfs: fix unmountable seed device after fstrim
-
 . ./common/preamble
 _begin_fstest auto quick seed trim
 
@@ -19,6 +16,8 @@ _begin_fstest auto quick seed trim
 
 # Modify as appropriate.
 _supported_fs btrfs
+_fixed_by_kernel_commit 5e753a817b2d \
+       "btrfs: fix unmountable seed device after fstrim"
 _require_command "$BTRFS_TUNE_PROG" btrfstune
 _require_fstrim
 _require_scratch_dev_pool 2