]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02202a9021dfb5181c0439ecad6e055ca0606d18
tree4cd0004aa759e40fb630ad650589fa29e9454f59
parent88f1d304cb51d54d7a9c6a17ac7d4c0a86ee4bb7
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