]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/dma/swiotlb.c
swiotlb: move global variables into a new io_tlb_mem structure
authorClaire Chang <tientzu@chromium.org>
Thu, 18 Mar 2021 16:14:22 +0000 (17:14 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Mar 2021 04:58:25 +0000 (04:58 +0000)
commit73f620951b2b594bdc38722c0d647c3b3312af7a
tree7b2ef5d861b29f300ee54abe48a4a31d0a559e6a
parent6bcd4ea717f3d26edf3da397c82fc9c2236f4f27
swiotlb: move global variables into a new io_tlb_mem structure

Added a new struct, io_tlb_mem, as the IO TLB memory pool descriptor and
moved relevant global variables into that struct.
This will be useful later to allow for restricted DMA pool.

Signed-off-by: Claire Chang <tientzu@chromium.org>
[hch: rebased]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c
include/linux/swiotlb.h
kernel/dma/swiotlb.c