diff options
author | Christoph Hellwig <hch@lst.de> | 2018-09-24 09:43:53 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-09-24 12:33:59 -0600 |
commit | 6e768461c215eaf8912e6c23e40fdff1cd962aca (patch) | |
tree | bffe8520b8509cec995de30b555bdc1c5e9f8ed7 /include/linux/bio.h | |
parent | 3dccdae54fe836a22cee9dc6df9fd1708ae075ce (diff) |
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.h | 5 |
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 */ |