diff options
author | Yufen Yu <yuyufen@huawei.com> | 2020-08-20 15:22:11 +0200 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-09-25 01:44:44 +0200 |
commit | 4f86ff5580fa692f850f37f948c73814a24a722b (patch) | |
tree | 055f2e3a8f59534fcc6749846f1a0e1f9bd06b89 /include | |
parent | md/raid6: let syndrome computor support different page offset (diff) | |
download | linux-4f86ff5580fa692f850f37f948c73814a24a722b.tar.xz linux-4f86ff5580fa692f850f37f948c73814a24a722b.zip |
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 'include')
-rw-r--r-- | include/linux/async_tx.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/async_tx.h b/include/linux/async_tx.h index efc5510f7d11..5cc73d7e5b52 100644 --- a/include/linux/async_tx.h +++ b/include/linux/async_tx.h @@ -196,11 +196,13 @@ async_syndrome_val(struct page **blocks, unsigned int *offsets, int src_cnt, struct dma_async_tx_descriptor * async_raid6_2data_recov(int src_num, size_t bytes, int faila, int failb, - struct page **ptrs, struct async_submit_ctl *submit); + struct page **ptrs, unsigned int *offs, + struct async_submit_ctl *submit); struct dma_async_tx_descriptor * async_raid6_datap_recov(int src_num, size_t bytes, int faila, - struct page **ptrs, struct async_submit_ctl *submit); + struct page **ptrs, unsigned int *offs, + struct async_submit_ctl *submit); void async_tx_quiesce(struct dma_async_tx_descriptor **tx); #endif /* _ASYNC_TX_H_ */ |