From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>, <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] btrfs: SSD related mount option dependency rework.
Date: Thu, 7 Aug 2014 19:37:26 +0900 [thread overview]
Message-ID: <53E356E6.3070705@jp.fujitsu.com> (raw)
In-Reply-To: <1406863651-11042-1-git-send-email-quwenruo@cn.fujitsu.com>
Hi Qu,
(2014/08/01 12:27), Qu Wenruo wrote:
> According to Documentations/filesystem/btrfs.txt, ssd/ssd_spread/nossd
> has their own dependency(See below), but only ssd_spread implying ssd is
> implemented.
>
> ssd_spread implies ssd, conflicts nossd.
> ssd conflicts nossd.
> nossd conflicts ssd and ssd_spread.
>
> This patch adds ssd{,_spread} confliction with nossd.
How about write down above-mentioned dependencies in
Documentations/filesystem/btrfs.txt too?
Thanks,
Satoru
>
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
> ---
> fs/btrfs/super.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
> index 8e16bca..2508a16 100644
> --- a/fs/btrfs/super.c
> +++ b/fs/btrfs/super.c
> @@ -515,19 +515,22 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
> compress_type);
> }
> break;
> - case Opt_ssd:
> - btrfs_set_and_info(root, SSD,
> - "use ssd allocation scheme");
> - break;
> case Opt_ssd_spread:
> btrfs_set_and_info(root, SSD_SPREAD,
> "use spread ssd allocation scheme");
> + /* suppress the ssd mount option log */
> btrfs_set_opt(info->mount_opt, SSD);
> + /* fall through for other ssd routine */
> + case Opt_ssd:
> + btrfs_set_and_info(root, SSD,
> + "use ssd allocation scheme");
> + btrfs_clear_opt(info->mount_opt, NOSSD);
> break;
> case Opt_nossd:
> btrfs_set_and_info(root, NOSSD,
> "not using ssd allocation scheme");
> btrfs_clear_opt(info->mount_opt, SSD);
> + btrfs_clear_opt(info->mount_opt, SSD_SPREAD);
> break;
> case Opt_barrier:
> btrfs_clear_and_info(root, NOBARRIER,
>
next prev parent reply other threads:[~2014-08-07 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-01 3:27 [PATCH] btrfs: SSD related mount option dependency rework Qu Wenruo
2014-08-07 10:37 ` Satoru Takeuchi [this message]
2014-10-27 4:19 ` Qu Wenruo
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=53E356E6.3070705@jp.fujitsu.com \
--to=takeuchi_satoru@jp.fujitsu.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo@cn.fujitsu.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.