[PATCH 6/6] bcache: use bio_add_page instead of open coded bio manipulation

2018-06-13 Thread Christoph Hellwig
Let bch_bio_alloc_pages and bch_bio_map set up the bio vec information and bi_size. This also means no additional bch_bio_map call with a NULL argument is needed before bch_bio_alloc_pages. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/btree.c | 16 +++-

[PATCH 6/6] bcache: use bio_add_page instead of open coded bio manipulation

2018-06-11 Thread Christoph Hellwig
Let bch_bio_alloc_pages and bch_bio_map set up the bio vec information and bi_size. This also means no additional bch_bio_map call with a NULL argument is needed before bch_bio_alloc_pages. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/btree.c | 16 +++-