block: turn macro helpers into inline functions
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Oct 2021 21:24:10 +0000 (22:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:08:02 +0000 (08:08 -0600)
commitcf6d6238cdd319eca404756dee05bf55a748b6a9
tree3eb7a04cf09d62b6c2283b71ab601392699cfbc5
parente70feb8b3e6886c525c88943b5f1508d02f5a683
block: turn macro helpers into inline functions

Replace bio_set_dev() with an identical inline helper and move it
further to fix a dependency problem with bio_associate_blkg(). Do the
same for bio_copy_dev().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bio.h