OSDN Git Service

md/raid5: add new xor function to support different page offset
authorYufen Yu <yuyufen@huawei.com>
Thu, 20 Aug 2020 13:22:08 +0000 (09:22 -0400)
committerSong Liu <songliubraving@fb.com>
Thu, 24 Sep 2020 23:44:44 +0000 (16:44 -0700)
commit29bcff787a2593b2126cfaff612c0b4e560022e9
tree4cd0004aa759e40fb630ad650589fa29e9454f59
parent248728dd04f5804ed1ff13bb4db9795899d25dca
md/raid5: add new xor function to support different page offset

raid5 will call async_xor() and async_xor_val() to compute xor.
For now, both of them require the common src/dst page offset. But,
we want them to support different src/dst page offset for following
shared page.

Here, adding two new function async_xor_offs() and async_xor_val_offs()
respectively for async_xor() and async_xor_val().

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