diff options
| author | Pawel Baldysiak <[email protected]> | 2017-08-16 15:13:45 +0000 |
|---|---|---|
| committer | Shaohua Li <[email protected]> | 2017-08-28 14:45:48 +0000 |
| commit | ddc088238cd6988bb4ac3776f403d7ff9d3c7a63 (patch) | |
| tree | 7f3a97e6af0ae88416519fbfe9af9b9ed08324b0 /drivers/md/raid1.c | |
| parent | md/raid0: attach correct cgroup info in bio (diff) | |
| download | kernel-ddc088238cd6988bb4ac3776f403d7ff9d3c7a63.tar.gz kernel-ddc088238cd6988bb4ac3776f403d7ff9d3c7a63.zip | |
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 <[email protected]>
Signed-off-by: Artur Paszkiewicz <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Diffstat (limited to 'drivers/md/raid1.c')
| -rw-r--r-- | drivers/md/raid1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 79474f47eeef..1f5bd9475dc1 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -48,7 +48,8 @@ #define UNSUPPORTED_MDDEV_FLAGS \ ((1L << MD_HAS_JOURNAL) | \ (1L << MD_JOURNAL_CLEAN) | \ - (1L << MD_HAS_PPL)) + (1L << MD_HAS_PPL) | \ + (1L << MD_HAS_MULTIPLE_PPLS)) /* * Number of guaranteed r1bios in case of extreme VM load: |
