From: Qu Wenruo <wqu@suse.com>
To: fdmanana@kernel.org, fstests@vger.kernel.org
Cc: linux-btrfs@vger.kernel.org, Filipe Manana <fdmanana@suse.com>
Subject: Re: [PATCH] common/btrfs: exercise all algorithms in _btrfs_stress_remount_compress()
Date: Wed, 16 Sep 2026 07:48:13 +0930 [thread overview]
Message-ID: <b735211e-5987-4829-922d-4b80633f699d@suse.com> (raw)
In-Reply-To: <cc052d6b35788720c6cdc93be7eb6af637a9fc96.1789486070.git.fdmanana@suse.com>
在 2026/9/16 00:58, fdmanana@kernel.org 写道:
> From: Filipe Manana <fdmanana@suse.com>
>
> _btrfs_stress_remount_compress() is using a hard coded list of algorithms
> which is incomplete as zstd is missing as is supported for some years now.
>
> So remove the hard coded list and use _btrfs_compression_algos() to get
> the list of supported compression algorithms.
>
> Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
> ---
> common/btrfs | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/common/btrfs b/common/btrfs
> index 0bfb02dd..3eb68beb 100644
> --- a/common/btrfs
> +++ b/common/btrfs
> @@ -449,8 +449,10 @@ _btrfs_kill_stress_defrag_pid()
> _btrfs_stress_remount_compress()
> {
> local btrfs_mnt=$1
> + local algo_list=("no" $(_btrfs_compression_algos))
> +
> while true; do
> - for algo in no zlib lzo; do
> + for algo in ${algo_list[@]}; do
> _mount -o remount,compress=$algo $btrfs_mnt
> done
> done
prev parent reply other threads:[~2026-09-15 22:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 15:28 [PATCH] common/btrfs: exercise all algorithms in _btrfs_stress_remount_compress() fdmanana
2026-09-15 22:18 ` Qu Wenruo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b735211e-5987-4829-922d-4b80633f699d@suse.com \
--to=wqu@suse.com \
--cc=fdmanana@kernel.org \
--cc=fdmanana@suse.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox