diff options
author | Ming Lei <tom.leiming@gmail.com> | 2017-03-17 00:12:29 +0800 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-03-24 10:41:37 -0700 |
commit | 6f8802852f7e58a12177a86179803b9efaad98e2 (patch) | |
tree | bc5c56bd8c109ebd1b293708e2a4024b1ea68d2e /include/linux/bio.h | |
parent | 60928a91b0b3beca4a1cf2739118f967c783f79a (diff) | |
download | blackbird-op-linux-6f8802852f7e58a12177a86179803b9efaad98e2.tar.gz blackbird-op-linux-6f8802852f7e58a12177a86179803b9efaad98e2.zip |
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>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 8e521194f6fc..42b62a0288b0 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -468,6 +468,8 @@ static inline void bio_flush_dcache_pages(struct bio *bi) #endif extern void bio_copy_data(struct bio *dst, struct bio *src); +extern void bio_copy_data_partial(struct bio *dst, struct bio *src, + int offset, int size); extern int bio_alloc_pages(struct bio *bio, gfp_t gfp); extern void bio_free_pages(struct bio *bio); |