[PATCH 3/6] bcache: clean up bio reuse for struct moving_io

2018-06-13 Thread Christoph Hellwig
Instead of reinitializing the bio everytime we can call bio_reuse when reusing it. Also removes the remainder of the moving_init helper to improve readability. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/movinggc.c | 40 +--- 1 file changed, 19 inserti

[PATCH 3/6] bcache: clean up bio reuse for struct moving_io

2018-06-11 Thread Christoph Hellwig
Instead of reinitializing the bio everytime we can call bio_reuse when reusing it. Also removes the remainder of the moving_init helper to improve readability. Signed-off-by: Christoph Hellwig --- drivers/md/bcache/movinggc.c | 40 +--- 1 file changed, 19 inserti