diff options
author | Yufen Yu <yuyufen@huawei.com> | 2020-08-20 16:22:11 +0300 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-09-25 02:44:44 +0300 |
commit | 4f86ff5580fa692f850f37f948c73814a24a722b (patch) | |
tree | 055f2e3a8f59534fcc6749846f1a0e1f9bd06b89 /crypto/async_tx/raid6test.c | |
parent | d69454bc9fdfb63e84152e0533454079ea3e38a3 (diff) | |
download | linux-4f86ff5580fa692f850f37f948c73814a24a722b.tar.xz |
md/raid6: let async recovery function support different page offset
For now, asynchronous raid6 recovery calculate functions are require
common offset for pages. But, we expect them to support different page
offset after introducing stripe shared page. Do that by simplily adding
page offset where each page address are referred. Then, replace the
old interface with the new ones in raid6 and raid6test.
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'crypto/async_tx/raid6test.c')
-rw-r--r-- | crypto/async_tx/raid6test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c index ef4e6e68f759..66db82e5a3b1 100644 --- a/crypto/async_tx/raid6test.c +++ b/crypto/async_tx/raid6test.c @@ -101,12 +101,12 @@ static void raid6_dual_recov(int disks, size_t bytes, int faila, int failb, /* data+P failure. */ init_async_submit(&submit, 0, NULL, NULL, NULL, addr_conv); tx = async_raid6_datap_recov(disks, bytes, - faila, ptrs, &submit); + faila, ptrs, offs, &submit); } else { /* data+data failure. */ init_async_submit(&submit, 0, NULL, NULL, NULL, addr_conv); tx = async_raid6_2data_recov(disks, bytes, - faila, failb, ptrs, &submit); + faila, failb, ptrs, offs, &submit); } } init_completion(&cmp); |