diff options
author | Pawel Baldysiak <pawel.baldysiak@intel.com> | 2017-08-16 17:13:45 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-08-28 07:45:48 -0700 |
commit | ddc088238cd6988bb4ac3776f403d7ff9d3c7a63 (patch) | |
tree | 7f3a97e6af0ae88416519fbfe9af9b9ed08324b0 /include/uapi/linux/raid | |
parent | 8a8e6f84ad10e7a10bde438b42926da0e9bc820f (diff) | |
download | op-kernel-dev-ddc088238cd6988bb4ac3776f403d7ff9d3c7a63.zip op-kernel-dev-ddc088238cd6988bb4ac3776f403d7ff9d3c7a63.tar.gz |
md: Runtime support for multiple ppls
Increase PPL area to 1MB and use it as circular buffer to store PPL. The
entry with highest generation number is the latest one. If PPL to be
written is larger then space left in a buffer, rewind the buffer to the
start (don't wrap it).
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'include/uapi/linux/raid')
-rw-r--r-- | include/uapi/linux/raid/md_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/raid/md_p.h b/include/uapi/linux/raid/md_p.h index d500bd2..b919797 100644 --- a/include/uapi/linux/raid/md_p.h +++ b/include/uapi/linux/raid/md_p.h @@ -324,9 +324,10 @@ struct mdp_superblock_1 { #define MD_FEATURE_RECOVERY_BITMAP 128 /* recovery that is happening * is guided by bitmap. */ -#define MD_FEATURE_CLUSTERED 256 /* clustered MD */ +#define MD_FEATURE_CLUSTERED 256 /* clustered MD */ #define MD_FEATURE_JOURNAL 512 /* support write cache */ #define MD_FEATURE_PPL 1024 /* support PPL */ +#define MD_FEATURE_MULTIPLE_PPLS 2048 /* support for multiple PPLs */ #define MD_FEATURE_ALL (MD_FEATURE_BITMAP_OFFSET \ |MD_FEATURE_RECOVERY_OFFSET \ |MD_FEATURE_RESHAPE_ACTIVE \ @@ -338,6 +339,7 @@ struct mdp_superblock_1 { |MD_FEATURE_CLUSTERED \ |MD_FEATURE_JOURNAL \ |MD_FEATURE_PPL \ + |MD_FEATURE_MULTIPLE_PPLS \ ) struct r5l_payload_header { |