]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:11:29 +0000 (23:11 +0900)
commiteceb1cd49c67debc7887c306d2d8efee3d95d04f
tree08616b619933c3bc6c7108a1c915a30b9e4ef1da
parentbe138dfeba5264ffb4273fd6b4f7ec8b9b2c2878
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