[PATCH 4/6] bcache: clean up bio reuse for struct dirty_io

2018-06-13 Thread Christoph Hellwig
Instead of reinitializing the bio everytime we can call bio_reuse when reusing it. Also moves the private data initialization out of dirty_init, which is renamed to suit the remaining functionality. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/writeback.c | 26

[PATCH 4/6] bcache: clean up bio reuse for struct dirty_io

2018-06-11 Thread Christoph Hellwig
Instead of reinitializing the bio everytime we can call bio_reuse when reusing it. Also moves the private data initialization out of dirty_init, which is renamed to suit the remaining functionality. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/writeback.c | 26