diff options
author | Christoph Hellwig <hch@lst.de> | 2024-07-06 09:52:17 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-07-08 01:51:05 -0600 |
commit | 25f76c3db2f08428b5acd082a52787164001eb6e (patch) | |
tree | 7c73e1146750721b46a0869742cff0d4b3282a86 /arch/m68k | |
parent | bf86bcdb40123ee99669ee91b67e023669433a1a (diff) |
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>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/emu/nfblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/emu/nfblock.c b/arch/m68k/emu/nfblock.c index 8eea7ef91151..874fe9588773 100644 --- a/arch/m68k/emu/nfblock.c +++ b/arch/m68k/emu/nfblock.c @@ -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); |