]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitfb0eb5df09307603b21845af1d143cc910154593
tree7415f28242bf25b9351bde3ea2bd7fcadede3392
parent022e510fcbda79183fd2cdc01abb01b4be80d03f
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