summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2020-08-20 09:22:11 -0400
committerSong Liu <songliubraving@fb.com>2020-09-24 16:44:44 -0700
commit4f86ff5580fa692f850f37f948c73814a24a722b (patch)
tree055f2e3a8f59534fcc6749846f1a0e1f9bd06b89 /drivers/md/raid5.c
parentd69454bc9fdfb63e84152e0533454079ea3e38a3 (diff)
downloadlinux-4f86ff5580fa692f850f37f948c73814a24a722b.tar.bz2
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 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 35f0317f0717..d36b8192940b 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -1685,13 +1685,13 @@ ops_run_compute6_2(struct stripe_head *sh, struct raid5_percpu *percpu)
return async_raid6_datap_recov(syndrome_disks+2,
RAID5_STRIPE_SIZE(sh->raid_conf),
faila,
- blocks, &submit);
+ blocks, offs, &submit);
} else {
/* We're missing D+D. */
return async_raid6_2data_recov(syndrome_disks+2,
RAID5_STRIPE_SIZE(sh->raid_conf),
faila, failb,
- blocks, &submit);
+ blocks, offs, &submit);
}
}
}