]> git.baikalelectronics.ru Git - kernel.git/commit
xen-swiotlb: use is_swiotlb_buffer in is_xen_swiotlb_buffer
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Mar 2021 07:44:27 +0000 (08:44 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 17 Mar 2021 00:33:52 +0000 (00:33 +0000)
commite724f3a809760626b9a3e9970e3cbae13ad745e2
treed63b6af55beb3993e58b12ca0eaa1348f3b3721f
parent16f94969d2aaf946f74954fcbb1bc6b9e4483eca
xen-swiotlb: use is_swiotlb_buffer in is_xen_swiotlb_buffer

Use the is_swiotlb_buffer to check if a physical address is
a swiotlb buffer.  This works because xen-swiotlb does use the
same buffer as the main swiotlb code, and xen_io_tlb_{start,end}
are just the addresses for it that went through phys_to_virt.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c