mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
block: add a bvec_phys helper
Get callers out of poking into bvec internals a bit more. Not a huge win right now, but with the proposed new DMA mapping API we might end up with a lot more of this otherwise. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20240706075228.2350978-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
bf86bcdb40
commit
25f76c3db2
@@ -71,7 +71,7 @@ static void nfhd_submit_bio(struct bio *bio)
|
||||
len = bvec.bv_len;
|
||||
len >>= 9;
|
||||
nfhd_read_write(dev->id, 0, dir, sec >> shift, len >> shift,
|
||||
page_to_phys(bvec.bv_page) + bvec.bv_offset);
|
||||
bvec_phys(&bvec));
|
||||
sec += len;
|
||||
}
|
||||
bio_endio(bio);
|
||||
|
||||
Reference in New Issue
Block a user