We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ee5d6 commit 2caca8fCopy full SHA for 2caca8f
include/linux/bvec.h
@@ -286,12 +286,7 @@ static inline void *bvec_virt(struct bio_vec *bvec)
286
*/
287
static inline phys_addr_t bvec_phys(const struct bio_vec *bvec)
288
{
289
- /*
290
- * Note this open codes page_to_phys because page_to_phys is defined in
291
- * <asm/io.h>, which we don't want to pull in here. If it ever moves to
292
- * a sensible place we should start using it.
293
- */
294
- return PFN_PHYS(page_to_pfn(bvec->bv_page)) + bvec->bv_offset;
+ return page_to_phys(bvec->bv_page) + bvec->bv_offset;
295
}
296
297
#endif /* __LINUX_BVEC_H */
0 commit comments