summaryrefslogtreecommitdiffstats
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorChristoph Hellwig2018-09-24 09:43:53 +0200
committerJens Axboe2018-09-24 20:33:59 +0200
commit6e768461c215eaf8912e6c23e40fdff1cd962aca (patch)
treebffe8520b8509cec995de30b555bdc1c5e9f8ed7 /include/linux/bio.h
parentblock: merge BIOVEC_SEG_BOUNDARY into biovec_phys_mergeable (diff)
downloadkernel-qcow2-linux-6e768461c215eaf8912e6c23e40fdff1cd962aca.tar.gz
kernel-qcow2-linux-6e768461c215eaf8912e6c23e40fdff1cd962aca.tar.xz
kernel-qcow2-linux-6e768461c215eaf8912e6c23e40fdff1cd962aca.zip
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 'include/linux/bio.h')
-rw-r--r--include/linux/bio.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 9b580e1cb2e8..9ad4b0a487a4 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -133,11 +133,6 @@ static inline bool bio_full(struct bio *bio)
}
/*
- * will die
- */
-#define bvec_to_phys(bv) (page_to_phys((bv)->bv_page) + (unsigned long) (bv)->bv_offset)
-
-/*
* drivers should _never_ use the all version - the bio may have been split
* before it got to the driver and the driver won't own all of it
*/