swiotlb: fix debugfs reporting of reserved memory pools
authorMichael Kelley <mikelley@microsoft.com>
Thu, 13 Apr 2023 15:37:30 +0000 (08:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:35 +0000 (23:03 +0900)
commit4aa9243ebe1562e8c7136e637265e515c8790c9d
tree7acd4dd2dfafb8c3e6d887f3096bd94059664f1a
parente6c69b06e720da33a8b53edb7bdda8a368ef092d
swiotlb: fix debugfs reporting of reserved memory pools

[ Upstream commit 5499d01c029069044a3b3e50501c77b474c96178 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/dma/swiotlb.c