]> git.baikalelectronics.ru Git - kernel.git/commit
md: raid1/raid10: initialize bvec table via bio_add_page()
authorMing Lei <ming.lei@redhat.com>
Fri, 14 Jul 2017 08:14:43 +0000 (16:14 +0800)
committerShaohua Li <shli@fb.com>
Fri, 21 Jul 2017 19:47:20 +0000 (12:47 -0700)
commit7bbea721ff5d79cad141d5e74a260e385dc68b1c
tree7415f28242bf25b9351bde3ea2bd7fcadede3392
parentf27a8d12e38bba4e93c0cfa286be66d38e39f553
md: raid1/raid10: initialize bvec table via bio_add_page()

We will support multipage bvec soon, so initialize bvec
table using the standardy way instead of writing the
talbe directly. Otherwise it won't work any more once
multipage bvec is enabled.

Acked-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1-10.c [new file with mode: 0644]
drivers/md/raid1.c
drivers/md/raid10.c