linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chen Rong <rongx.a.chen@intel.com>
To: linux-raid@vger.kernel.org
Cc: Chen Rong <rongx.a.chen@intel.com>
Subject: [PATCH 1/2] incremental: fix check journal device
Date: Thu, 17 Aug 2017 15:41:20 +0800	[thread overview]
Message-ID: <1502955681-17313-1-git-send-email-rongx.a.chen@intel.com> (raw)

set journal_clean=1 if not journal device

Signed-off-by: Chen Rong <rongx.a.chen@intel.com>
---
 Incremental.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Incremental.c b/Incremental.c
index 0f507bb..a91f82c 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -733,7 +733,7 @@ static int count_active(struct supertype *st, struct mdinfo *sra,
 
 		info.array.raid_disks = raid_disks;
 		st->ss->getinfo_super(st, &info, devmap + raid_disks * devnum);
-		if (info.disk.raid_disk == MD_DISK_ROLE_JOURNAL)
+		if (info.disk.raid_disk != MD_DISK_ROLE_JOURNAL)
 			bestinfo->journal_clean = 1;
 		if (!avail) {
 			raid_disks = info.array.raid_disks;
-- 
2.7.4


             reply	other threads:[~2017-08-17  7:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-17  7:41 Chen Rong [this message]
2017-08-17  7:41 ` [PATCH 2/2] tests/20raid5journal: fix test_incremental Chen Rong

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=1502955681-17313-1-git-send-email-rongx.a.chen@intel.com \
    --to=rongx.a.chen@intel.com \
    --cc=linux-raid@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;
as well as URLs for NNTP newsgroup(s).