summaryrefslogtreecommitdiffstats
path: root/include/linux/swiotlb.h
diff options
context:
space:
mode:
authorChao Gao <chao.gao@intel.com>2022-07-15 18:45:33 +0800
committerChristoph Hellwig <hch@lst.de>2022-07-18 06:48:54 +0200
commit91561d4ecb755f056f8ff04f9dcaec210140e55c (patch)
tree9af6377281f886a07e2daf0aa30d6c08290af8e3 /include/linux/swiotlb.h
parent4a97739474c402e0a14cf6a432f1920262f6811c (diff)
downloadlinux-91561d4ecb755f056f8ff04f9dcaec210140e55c.tar.gz
linux-91561d4ecb755f056f8ff04f9dcaec210140e55c.tar.bz2
linux-91561d4ecb755f056f8ff04f9dcaec210140e55c.zip
swiotlb: remove unused fields in io_tlb_mem
Commit 20347fca71a3 ("swiotlb: split up the global swiotlb lock") splits io_tlb_mem into multiple areas. Each area has its own lock and index. The global ones are not used so remove them. Signed-off-by: Chao Gao <chao.gao@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r--include/linux/swiotlb.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index f65ff1930120..d3ae03edbbd2 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -79,11 +79,8 @@ dma_addr_t swiotlb_map(struct device *dev, phys_addr_t phys,
* @used: The number of used IO TLB block.
* @list: The free list describing the number of free entries available
* from each index.
- * @index: The index to start searching in the next round.
* @orig_addr: The original address corresponding to a mapped entry.
* @alloc_size: Size of the allocated buffer.
- * @lock: The lock to protect the above data structures in the map and
- * unmap calls.
* @debugfs: The dentry to debugfs.
* @late_alloc: %true if allocated using the page allocator
* @force_bounce: %true if swiotlb bouncing is forced
@@ -97,8 +94,6 @@ struct io_tlb_mem {
void *vaddr;
unsigned long nslabs;
unsigned long used;
- unsigned int index;
- spinlock_t lock;
struct dentry *debugfs;
bool late_alloc;
bool force_bounce;