Searched hist:"47 d951023a242bb159534573a4a76fef9a31dc9b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm.c | diff 47d951023a242bb159534573a4a76fef9a31dc9b Sat Nov 07 02:30:05 CST 2020 Christoph Hellwig <hch@lst.de> dm: simplify flush_bio initialization in __send_empty_flush
We don't really need the struct block_device to initialize a bio. So switch from using bio_set_dev to manually setting up bi_disk (bi_partno will always be zero and has been cleared by bio_init already).
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Acked-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|