]> git.baikalelectronics.ru Git - kernel.git/commit
bvec: add a bvec_kmap_local helper
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jul 2021 05:56:34 +0000 (07:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:27 +0000 (13:37 -0600)
commit3585edc5d1df04dd5333c1291fd260a31ee22d23
tree107eecedd964ddce383f8b7e0f02279f198893bb
parentef2460601c237b2779c11c074349c06fa601aba2
bvec: add a bvec_kmap_local helper

Add a helper to call kmap_local_page on a bvec.  There is no need for
an unmap helper given that kunmap_local accept any address in the mapped
page.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20210727055646.118787-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bvec.h