[PATCH 2/6] bcache: use bio_reuse instead of bio_reinit where applicable

2018-06-13 Thread Christoph Hellwig
Use the bio_reuse helper instead of rebuilding the bio_vecs and size for bios that get reused for the same data. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/request.c | 5 + drivers/md/bcache/super.c | 6 ++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git

[PATCH 2/6] bcache: use bio_reuse instead of bio_reinit where applicable

2018-06-11 Thread Christoph Hellwig
Use the bio_reuse helper instead of rebuilding the bio_vecs and size for bios that get reused for the same data. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/request.c | 5 + drivers/md/bcache/super.c | 6 ++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git