Re: [PATCH 64/78] dm: simplify flush_bio initialization in __send_empty_flush

2020-11-19 Thread Hannes Reinecke
On 11/16/20 3:57 PM, Christoph Hellwig wrote: 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 --- drive

[PATCH 64/78] dm: simplify flush_bio initialization in __send_empty_flush

2020-11-16 Thread Christoph Hellwig
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 --- drivers/md/dm.c | 12 +++- 1 file changed, 3 i