]> git.baikalelectronics.ru Git - kernel.git/commit
block: initialize the target bio in __bio_clone_fast
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Feb 2022 16:01:08 +0000 (17:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 14:43:18 +0000 (07:43 -0700)
commit7296b46c04cc499e5313aa4f34e876061abded30
treeda8bba878198dc6c1a69f8bfab43c9eecd41fad4
parent2139a37d694d4fa96c3e8bd1b5ab128709e7c211
block: initialize the target bio in __bio_clone_fast

All callers of __bio_clone_fast initialize the bio first.  Move that
initialization into __bio_clone_fast instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20220202160109.108149-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
drivers/md/bcache/request.c
drivers/md/md-multipath.c