swiotlb: separate memory pool data from other allocator data
authorPetr Tesarik <petr.tesarik.ext@huawei.com>
Tue, 1 Aug 2023 06:23:59 +0000 (08:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 1 Aug 2023 16:02:14 +0000 (18:02 +0200)
commit158dbe9c9a3d36da824139e5304169326550c6c9
tree959d16746ac2c2dfc1ae30a3a5ef454d719b8baf
parentfea18777a78e845c6031128b40aaa2cf2cb46874
swiotlb: separate memory pool data from other allocator data

Carve out memory pool specific fields from struct io_tlb_mem. The original
struct now contains shared data for the whole allocator, while the new
struct io_tlb_pool contains data that is specific to one memory pool of
(potentially) many.

Signed-off-by: Petr Tesarik <petr.tesarik.ext@huawei.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/device.h
include/linux/swiotlb.h
kernel/dma/swiotlb.c