]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit639cc26f2b4ab4835ebf698c699459b27a7d67fa
tree250c53d803362f398ca08554a58508d3bb285f47
parent709fde07e880f379889ae8dbe2db1657b6a33ca2
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