]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: add a new member of offset into r5dev
authorYufen Yu <yuyufen@huawei.com>
Thu, 20 Aug 2020 13:22:06 +0000 (09:22 -0400)
committerSong Liu <songliubraving@fb.com>
Thu, 24 Sep 2020 23:44:44 +0000 (16:44 -0700)
commitfa0c5cec5d61211f93f2d1e1f6cf821cd3d95754
tree64e455032f9c397c6af8988bd0ef6bde4088d81a
parent0367b0d2568d9c563ad3781051761ace46f05ebd
md/raid5: add a new member of offset into r5dev

Add a new member of offset into struct r5dev. It indicates the
offset of related dev[i].page. For now, since each device have a
privated page, the value is always 0. Thus, we set offset as 0
when allcate page in grow_buffers() and resize_stripes().

To support following different page offset, we try to use the page
offset rather than '0' directly for async_memcpy() and ops_run_io().

We try to support different page offset for xor compution functions
in the following. To avoid repeatly allocate a new array each time,
we add a memory region into scribble buffer to record offset.

No functional change.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid5.c
drivers/md/raid5.h