]> git.baikalelectronics.ru Git - kernel.git/commit
block: introduce bio_copy_data_partial
authorMing Lei <tom.leiming@gmail.com>
Thu, 16 Mar 2017 16:12:29 +0000 (00:12 +0800)
committerShaohua Li <shli@fb.com>
Fri, 24 Mar 2017 17:41:37 +0000 (10:41 -0700)
commit5289c0b886d52c33b97411ea233c33fdca3c6222
treebc5c56bd8c109ebd1b293708e2a4024b1ea68d2e
parent1b9dd9e76a205612edbf87e52d638154b3ad7162
block: introduce bio_copy_data_partial

Turns out we can use bio_copy_data in raid1's write behind,
and we can make alloc_behind_pages() more clean/efficient,
but we need to partial version of bio_copy_data().

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
block/bio.c
include/linux/bio.h