md/raid6: let syndrome computor support different page offset
authorYufen Yu <yuyufen@huawei.com>
Thu, 20 Aug 2020 13:22:10 +0000 (09:22 -0400)
committerSong Liu <songliubraving@fb.com>
Thu, 24 Sep 2020 23:44:44 +0000 (16:44 -0700)
commitd69454bc9fdfb63e84152e0533454079ea3e38a3
tree1b2f5815eeb41679cb22e319b423c2d28fc37df5
parenta7c224a820c36192888ad0beb11c2e612264f533
md/raid6: let syndrome computor support different page offset

For now, syndrome compute functions require common offset in the pages
array. However, we expect them to support different offset when try to
use shared page in the following. Simplily covert them by adding page
offset where each page address are referred.

Since the only caller of async_gen_syndrome() and async_syndrome_val()
are in raid6, we don't want to reserve the old interface but modify the
interface directly. After that, replacing old interfaces with new ones
for raid6 and raid6test.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
crypto/async_tx/async_pq.c
crypto/async_tx/raid6test.c
drivers/md/raid5.c
include/linux/async_tx.h