btrfs: remove discard=async from mount options
PATCH 1/1 btrfs: remove discard=async from mount options
The option has been default since 6.2, no need to set it.
--- .../fstests/templates/btrfs/btrfs.config | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-)
playbooks/roles/fstests/templates/btrfs/btrfs.config +26 -26
@@ -13,8 +13,8 @@ TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O ^no-holes -R ^free-space-tree' LOGWRITES_DEV={{ fstests_logwrites_dev }} SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o discard=async" -TEST_FS_MOUNT_OPTS="-o discard=async" +MOUNT_OPTIONS="" +TEST_FS_MOUNT_OPTS="" PERF_CONFIGNAME={{ fstests_perf_config }} {% endif %}
@@ -23,8 +23,8 @@ PERF_CONFIGNAME={{ fstests_perf_config }} TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O no-holes -f -R ^free-space-tree' SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o compress=zlib,discard=async"" -TEST_FS_MOUNT_OPTS="-o compress=zlib,discard=async"" +MOUNT_OPTIONS="-o compress=zlib" +TEST_FS_MOUNT_OPTS="-o compress=zlib" {% endif %} {% if fstests_btrfs_section_holes_lzo -%}
@@ -32,8 +32,8 @@ TEST_FS_MOUNT_OPTS="-o compress=zlib,discard=async"" TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O no-holes -f -R ^free-space-tree' SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o compress=lzo,discard=async"" -TEST_FS_MOUNT_OPTS="-o compress=lzo,discard=async"" +MOUNT_OPTIONS="-o compress=lzo" +TEST_FS_MOUNT_OPTS="-o compress=lzo" {% endif %} {% if fstests_btrfs_section_holes_zstd -%}
@@ -41,8 +41,8 @@ TEST_FS_MOUNT_OPTS="-o compress=lzo,discard=async"" TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O no-holes -f -R ^free-space-tree' SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o compress=zstd,discard=async" -TEST_FS_MOUNT_OPTS="-o compress=zstd,discard=async" +MOUNT_OPTIONS="-o compress=zstd" +TEST_FS_MOUNT_OPTS="-o compress=zstd" {% endif %} {% if fstests_btrfs_section_noholes -%}
@@ -60,8 +60,8 @@ TEST_DEV={{ fstests_test_dev }} LOGWRITES_DEV={{ fstests_logwrites_dev }} MKFS_OPTIONS='-f -K -O no-holes -f -R ^free-space-tree' SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o compress=zlib,discard=async" -TEST_FS_MOUNT_OPTS="-o compress=zlib,discard=async" +MOUNT_OPTIONS="-o compress=zlib" +TEST_FS_MOUNT_OPTS="-o compress=zlib" {% endif %} {% if fstests_btrfs_section_noholes_lzo -%}
@@ -70,8 +70,8 @@ TEST_DEV={{ fstests_test_dev }} LOGWRITES_DEV={{ fstests_logwrites_dev }} MKFS_OPTIONS='-f -K -O no-holes -f -R ^free-space-tree' SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o compress=lzo,discard=async" -TEST_FS_MOUNT_OPTS="-o compress=lzo,discard=async" +MOUNT_OPTIONS="-o compress=lzo" +TEST_FS_MOUNT_OPTS="-o compress=lzo" {% endif %} {% if fstests_btrfs_section_noholes_zstd -%}
@@ -80,8 +80,8 @@ TEST_DEV={{ fstests_test_dev }} LOGWRITES_DEV={{ fstests_logwrites_dev }} MKFS_OPTIONS='-f -K -O no-holes -f -R ^free-space-tree' SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o compress=zstd,discard=async" -TEST_FS_MOUNT_OPTS="-o compress=zstd,discard=async" +MOUNT_OPTIONS="-o compress=zstd" +TEST_FS_MOUNT_OPTS="-o compress=zstd" {% endif %} {% if fstests_btrfs_section_fspace -%}
@@ -110,8 +110,8 @@ TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O ^no-holes' LOGWRITES_DEV={{ fstests_logwrites_dev }} SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o space_cache=v2 -o compress=zlib,discard=async" -TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zlib,discard=async" +MOUNT_OPTIONS="-o space_cache=v2 -o compress=zlib" +TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zlib" {% endif %} {% if fstests_btrfs_section_fspace_lzo -%}
@@ -120,8 +120,8 @@ TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O ^no-holes' LOGWRITES_DEV={{ fstests_logwrites_dev }} SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o space_cache=v2 -o compress=lzo,discard=async" -TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=lzo,discard=async" +MOUNT_OPTIONS="-o space_cache=v2 -o compress=lzo" +TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=lzo" {% endif %} {% if fstests_btrfs_section_fspace_zstd -%}
@@ -130,8 +130,8 @@ TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O ^no-holes' LOGWRITES_DEV={{ fstests_logwrites_dev }} SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o space_cache=v2 -o compress=zstd,discard=async" -TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zstd,discard=async" +MOUNT_OPTIONS="-o space_cache=v2 -o compress=zstd" +TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zstd" {% endif %} {% if fstests_btrfs_section_nohofspace -%}
@@ -151,8 +151,8 @@ TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O no-holes' LOGWRITES_DEV={{ fstests_logwrites_dev }} SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o space_cache=v2 -o compress=zlib,discard=async" -TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zlib,discard=async" +MOUNT_OPTIONS="-o space_cache=v2 -o compress=zlib" +TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zlib" {% endif %} {% if fstests_btrfs_section_nohofspace_lzo -%}
@@ -161,8 +161,8 @@ TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O no-holes' LOGWRITES_DEV={{ fstests_logwrites_dev }} SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o space_cache=v2 -o compress=lzo,discard=async" -TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=lzo,discard=async" +MOUNT_OPTIONS="-o space_cache=v2 -o compress=lzo" +TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=lzo" {% endif %} {% if fstests_btrfs_section_nohofspace_zstd -%}
@@ -171,8 +171,8 @@ TEST_DEV={{ fstests_test_dev }} MKFS_OPTIONS='-f -K -O no-holes' LOGWRITES_DEV={{ fstests_logwrites_dev }} SCRATCH_DEV_POOL="{{ fstests_scratch_devpool }}" -MOUNT_OPTIONS="-o space_cache=v2 -o compress=zstd,discard=async" -TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zstd,discard=async" +MOUNT_OPTIONS="-o space_cache=v2 -o compress=zstd" +TEST_FS_MOUNT_OPTS="-o space_cache=v2 o compress=zstd" {% endif %} {% if fstests_btrfs_section_simple -%}
Signature · 1 line
2.49.0
Luis Chamberlain
AppliedQuoted 3 lines · David Sterba
The option has been default since 6.2, no need to set it.
Signed-off-by David Sterba <[email protected]>
Thanks! Applied and pushed.
Can I add you as the btrfs maintainer to the btrfs files under kdevops?
I've added you to those who can push to kdevops too, so if you're comfortable with your patches you can just push directly as well. If you're not comfortable with some changes which may affect others, you can just push a test branch to this git tree:
https://github.com/linux-kdevops/kdevops-kpd
Which is a throw-away tree we use for automation of patches posted to the kdevops mailing list. That is, also, patches posted to the kdevops mailing list get automatically tested as well, and you can keep track of test results for both patches posted and to branches to pushed to kdevops-kpd here:
https://github.com/linux-kdevops/kdevops-kpd/actions
Since this is regarding btrfs and we have v6.15-rc3 out now as well I also pushed a branch called btrfs-v6.15-rc3 to linux-btrfs-kpd. I did that as follows:
In your .gitconfig add a ci-btrfs git alias:
[alias]
ci-btrfs = "!f() { \
git fetch kdevops-ci && \
git merge kdevops-ci/btrfs --allow-unrelated-histories --squash && \
git commit -a -s -m \"CI: add kdevops actions from $(date -I)\" && \
git push -u linux-btrfs-kpd $(git branch --show-current):$(git branch --show-current); \
}; f"On your linux tree do first
git remote add kdevops-ci [email protected]:linux-kdevops/kdevops-ci.git git remote add linux-btrfs-kpd [email protected]:linux-kdevops/linux-btrfs-kpd.git
Then to push any development branch to test on linux-btrfs-kpd, just do:
git ci-btrfs
You can use this page to keep tabs on results:
https://github.com/linux-kdevops/linux-btrfs-kpd/actions
We can already see just the build alone failed! So something is messed up in v6.15-rc3 with a defconfig build it seems!. Once figured out, or if you want to push another test feel free to do so.
As you can see from the history the "options" branch took ~ 10 hours to run. Keep the options branch as-is and as the default branch of thelinux-btrfs-kpd tree, it lets you go to the actions page and click on "Run fstest" so you can run customized tests using the drop down options under "Run workflow".
After that the results are automatically pushed to kdevops-results-archive [1] and if its for an official release of linux will eventually automatically publish results to the btrfs dashboard [2].
[0] https://github.com/linux-kdevops/linux-btrfs-kpd
[1] https://github.com/linux-kdevops/kdevops-results-archive
[2] https://kdevops.org/btrfs/index.html
Luisk