summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Tesarik <petr.tesarik.ext@huawei.com>2023-06-06 14:46:25 +0200
committerChristoph Hellwig <hch@lst.de>2023-06-07 15:06:34 +0200
commitefa76afdde16f195f8faff0e8dbe58ec18aad70c (patch)
tree564b63b4ca1cfda83628cc268c3413a661d0e209
parent51ff97d54f02b4444dfc42e380ac4c058e12d5dd (diff)
downloadlinux-efa76afdde16f195f8faff0e8dbe58ec18aad70c.tar.gz
linux-efa76afdde16f195f8faff0e8dbe58ec18aad70c.tar.bz2
linux-efa76afdde16f195f8faff0e8dbe58ec18aad70c.zip
swiotlb: remove unused field "used" from struct io_tlb_mem
Commit 20347fca71a3 ("swiotlb: split up the global swiotlb lock") moved the number of used slots to struct io_tlb_area, but it did not remove the field from struct io_tlb_mem. Signed-off-by: Petr Tesarik <petr.tesarik.ext@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--include/linux/swiotlb.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index 7af2673b47ba..4e52cd5e0bdc 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -76,7 +76,6 @@ dma_addr_t swiotlb_map(struct device *dev, phys_addr_t phys,
* @nslabs: The number of IO TLB blocks (in groups of 64) between @start and
* @end. For default swiotlb, this is command line adjustable via
* setup_io_tlb_npages.
- * @used: The number of used IO TLB block.
* @list: The free list describing the number of free entries available
* from each index.
* @orig_addr: The original address corresponding to a mapped entry.
@@ -98,7 +97,6 @@ struct io_tlb_mem {
phys_addr_t end;
void *vaddr;
unsigned long nslabs;
- unsigned long used;
struct dentry *debugfs;
bool late_alloc;
bool force_bounce;