I would have replaced it with sg_virt(), but it doesn't appear to be
used at all.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
* returns, or alternatively stop on the first sg_dma_len(sg) which
* is 0.
*/
* returns, or alternatively stop on the first sg_dma_len(sg) which
* is 0.
*/
-#define sg_address(sg) (page_address((sg)->page) + (sg)->offset)
#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->length)
#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->length)