md: Runtime support for multiple ppls
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Wed, 16 Aug 2017 15:13:45 +0000 (17:13 +0200)
committerShaohua Li <shli@fb.com>
Mon, 28 Aug 2017 14:45:48 +0000 (07:45 -0700)
commitddc088238cd6988bb4ac3776f403d7ff9d3c7a63
tree7f3a97e6af0ae88416519fbfe9af9b9ed08324b0
parent8a8e6f84ad10e7a10bde438b42926da0e9bc820f
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>
drivers/md/md.c
drivers/md/md.h
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid5-ppl.c
drivers/md/raid5.c
include/uapi/linux/raid/md_p.h