bvec: add a bvec_virt helper
authorChristoph Hellwig <hch@lst.de>
Wed, 4 Aug 2021 09:56:20 +0000 (11:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Aug 2021 16:50:32 +0000 (10:50 -0600)
commit1113f0b69c6a98ff4e733c306a6658a31f8cbc49
tree250c53d803362f398ca08554a58508d3bb285f47
parent889c05cc5834a1eef2dbe1e639cfd7a81c4f4c6d
bvec: add a bvec_virt helper

Add a helper to get the virtual address for a bvec.  This avoids that
all callers need to know about the page + offset representation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210804095634.460779-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bvec.h