diff options
| author | Christoph Hellwig <[email protected]> | 2022-02-02 16:01:08 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-02-04 14:43:18 +0000 |
| commit | a0e8de798dd6710a69d69ec57b246a0e34c4a695 (patch) | |
| tree | da8bba878198dc6c1a69f8bfab43c9eecd41fad4 /drivers/md/bcache/request.c | |
| parent | dm: use bio_clone_fast in alloc_io/alloc_tio (diff) | |
| download | kernel-a0e8de798dd6710a69d69ec57b246a0e34c4a695.tar.gz kernel-a0e8de798dd6710a69d69ec57b246a0e34c4a695.zip | |
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 <[email protected]>
Reviewed-by: Mike Snitzer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/md/bcache/request.c')
| -rw-r--r-- | drivers/md/bcache/request.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 574b02b94f1a..d2cb853bf917 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -685,7 +685,6 @@ static void do_bio_hook(struct search *s, { struct bio *bio = &s->bio.bio; - bio_init(bio, NULL, NULL, 0, 0); __bio_clone_fast(bio, orig_bio, GFP_NOIO); /* * bi_end_io can be set separately somewhere else, e.g. the |
