diff options
author | Song Liu <songliubraving@fb.com> | 2015-08-13 21:31:55 (GMT) |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-10-24 06:16:18 (GMT) |
commit | bac624f3f86a8c7db395c7f85ccad6a504b9c4b4 (patch) | |
tree | 0b9240c0fb33d6adf4ddcfd85afd95321cc96552 /drivers/md/md.h | |
parent | c4d4c91b44d8309082127893221a1971a27c50ca (diff) | |
download | linux-bac624f3f86a8c7db395c7f85ccad6a504b9c4b4.tar.xz |
MD: add a new disk role to present write journal device
Next patches will use a disk as raid5/6 journaling. We need a new disk
role to present the journal device and add MD_FEATURE_JOURNAL to
feature_map for backward compability.
Signed-off-by: Song Liu <songliubraving@fb.com>
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 2ea0035..88dc631 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -172,6 +172,11 @@ enum flag_bits { * This device is seen locally but not * by the whole cluster */ + Journal, /* This device is used as journal for + * raid-5/6. + * Usually, this device should be faster + * than other devices in the array + */ }; #define BB_LEN_MASK (0x00000000000001FFULL) |