swiotlb: fix debugfs reporting of reserved memory pools
authorMichael Kelley <mikelley@microsoft.com>
Thu, 13 Apr 2023 15:37:30 +0000 (08:37 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 16 Apr 2023 06:23:14 +0000 (08:23 +0200)
commit5499d01c029069044a3b3e50501c77b474c96178
tree54bf6fe091ab9f51bd26312f169a36b145f036e3
parenta90922fa25370902322e9de6640e58737d459a50
swiotlb: fix debugfs reporting of reserved memory pools

For io_tlb_nslabs, the debugfs code reports the correct value for a
specific reserved memory pool.  But for io_tlb_used, the value reported
is always for the default pool, not the specific reserved pool. Fix this.

Fixes: 5c850d31880e ("swiotlb: fix passing local variable to debugfs_create_ulong()")
Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/swiotlb.c