summaryrefslogtreecommitdiffstats
path: root/arch/m68k/emu
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-09-24 09:43:53 +0200
committerJens Axboe <axboe@kernel.dk>2018-09-24 12:33:59 -0600
commit6e768461c215eaf8912e6c23e40fdff1cd962aca (patch)
treebffe8520b8509cec995de30b555bdc1c5e9f8ed7 /arch/m68k/emu
parent3dccdae54fe836a22cee9dc6df9fd1708ae075ce (diff)
downloadlinux-6e768461c215eaf8912e6c23e40fdff1cd962aca.tar.bz2
block: remove bvec_to_phys
We only use it in biovec_phys_mergeable and a m68k paravirt driver, so just opencode it there. Also remove the pointless unsigned long cast for the offset in the opencoded instances. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/m68k/emu')
-rw-r--r--arch/m68k/emu/nfblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/emu/nfblock.c b/arch/m68k/emu/nfblock.c
index e9110b9b8bcd..38049357d6d3 100644
--- a/arch/m68k/emu/nfblock.c
+++ b/arch/m68k/emu/nfblock.c
@@ -73,7 +73,7 @@ static blk_qc_t nfhd_make_request(struct request_queue *queue, struct bio *bio)
len = bvec.bv_len;
len >>= 9;
nfhd_read_write(dev->id, 0, dir, sec >> shift, len >> shift,
- bvec_to_phys(&bvec));
+ page_to_phys(bvec.bv_page) + bvec.bv_offset);
sec += len;
}
bio_endio(bio);