Skip to content

Commit efa76af

Browse files
Petr TesarikChristoph Hellwig
authored andcommitted
swiotlb: remove unused field "used" from struct io_tlb_mem
Commit 20347fc ("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 <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 51ff97d commit efa76af

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/swiotlb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ dma_addr_t swiotlb_map(struct device *dev, phys_addr_t phys,
7676
* @nslabs: The number of IO TLB blocks (in groups of 64) between @start and
7777
* @end. For default swiotlb, this is command line adjustable via
7878
* setup_io_tlb_npages.
79-
* @used: The number of used IO TLB block.
8079
* @list: The free list describing the number of free entries available
8180
* from each index.
8281
* @orig_addr: The original address corresponding to a mapped entry.
@@ -98,7 +97,6 @@ struct io_tlb_mem {
9897
phys_addr_t end;
9998
void *vaddr;
10099
unsigned long nslabs;
101-
unsigned long used;
102100
struct dentry *debugfs;
103101
bool late_alloc;
104102
bool force_bounce;

0 commit comments

Comments
 (0)