summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2015-09-02 13:49:50 -0700
committerNeilBrown <neilb@suse.com>2015-11-01 13:48:26 +1100
commitbd18f6462f3d167a9b3ec27851c98f82694b2adf (patch)
tree8c844bcfd5985c9f2f27183f38eca68dbef8318e /drivers/md/md.h
parent828cbe989e4f5c8666cb3d99918b03666ccde0a0 (diff)
downloadlinux-bd18f6462f3d167a9b3ec27851c98f82694b2adf.tar.gz
linux-bd18f6462f3d167a9b3ec27851c98f82694b2adf.tar.bz2
linux-bd18f6462f3d167a9b3ec27851c98f82694b2adf.zip
md: skip resync for raid array with journal
If a raid array has journal, the journal can guarantee the consistency, we can skip resync after a unclean shutdown. The exception is raid creation or user initiated resync, which we still do a raid resync. Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 2b0f62fb6146..e14e667a20e9 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -232,6 +232,7 @@ struct mddev {
#define MD_STILL_CLOSED 4 /* If set, then array has not been opened since
* md_ioctl checked on it.
*/
+#define MD_JOURNAL_CLEAN 5 /* A raid with journal is already clean */
int suspended;
atomic_t active_io;