diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index aaac54c478718df8cc49bbeb755fbb7e4211586b..22243822b8362e0165c17a22a03300afc4309ee0 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -794,6 +794,10 @@ static inline bool blk_account_rq(struct request *rq) #define rq_dma_dir(rq) \ (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE) +#define dma_map_bvec(dev, bv, dir, attrs) \ + dma_map_page_attrs(dev, (bv)->bv_page, (bv)->bv_offset, (bv)->bv_len, \ + (dir), (attrs)) + /* * Driver can handle struct request, if it either has an old style * request_fn defined, or is blk-mq based.