]> www.infradead.org Git - users/hch/block.git/commit
block: allow passing a NULL bdev to bio_alloc_clone/bio_init_clone blk-clone-no-bdev
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Apr 2022 16:13:55 +0000 (18:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 23 Apr 2022 16:54:31 +0000 (18:54 +0200)
commitdff492b6ab5df5e4ddcfd797b86f75dddf0b69eb
tree17a6ec4859411300a50aaba709ae09785e93fc2a
parent2e71e3e0581804b43b417c0fb93c013a27150632
block: allow passing a NULL bdev to bio_alloc_clone/bio_init_clone

Device mapper wants to allocate a bio before knowing the device it
gets send to, so add explicit support for that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio.c