Message ID | 20200618130300.31094-3-bstroesser@ts.fujitsu.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 3145550a7f8b08356c8ff29feaa6c56aca12901d |
Headers | show |
Series | [1/2] scsi: target: tcmu: Optimize use of flush_dcache_page | expand |
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index a65e9671ae7a..835d3001cb0e 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -601,7 +601,7 @@ static inline void tcmu_flush_dcache_range(void *vaddr, size_t size) size = round_up(size+offset, PAGE_SIZE); while (size) { - flush_dcache_page(virt_to_page(start)); + flush_dcache_page(vmalloc_to_page(start)); start += PAGE_SIZE; size -= PAGE_SIZE; }