linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Zhao Lei <zhaolei@cn.fujitsu.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 2/3] btrfs: use btrfs_raid_array for btrfs_get_num_tolerated_disk_barrier_failures()
Date: Tue, 22 Sep 2015 16:30:10 +0200	[thread overview]
Message-ID: <20150922143010.GJ12815@twin.jikos.cz> (raw)
In-Reply-To: <bea5cae2134583da7c2f2e936cecc8d95c3b7baf.1442322310.git.zhaolei@cn.fujitsu.com>

On Tue, Sep 15, 2015 at 09:08:07PM +0800, Zhao Lei wrote:
> btrfs_raid_array[] is used to define all raid attributes, use it
> to get tolerated_failures in btrfs_get_num_tolerated_disk_barrier_failures(),
> instead of complex condition in function.
> 
> It can make code simple and auto-support other possible raid-type in
> future.
> 
> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>

Reviewed-by: David Sterba <dsterba@suse.com>

  reply	other threads:[~2015-09-22 14:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-15 13:08 [PATCH 0/3] btrfs: Move btrfs_raid_array to public Zhao Lei
2015-09-15 13:08 ` [PATCH 1/3] " Zhao Lei
2015-09-22 14:28   ` David Sterba
2015-09-15 13:08 ` [PATCH 2/3] btrfs: use btrfs_raid_array for btrfs_get_num_tolerated_disk_barrier_failures() Zhao Lei
2015-09-22 14:30   ` David Sterba [this message]
2015-09-15 13:08 ` [PATCH 3/3] btrfs: use btrfs_raid_array in btrfs_reduce_alloc_profile Zhao Lei
2015-09-22 14:33   ` David Sterba

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=20150922143010.GJ12815@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=zhaolei@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).