swiotlb: Refactor swiotlb_create_debugfs
authorClaire Chang <tientzu@chromium.org>
Sat, 19 Jun 2021 03:40:33 +0000 (11:40 +0800)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Wed, 14 Jul 2021 00:04:35 +0000 (20:04 -0400)
commit6e675a1c455ea7579c7eaf1a38fe64267039d6fe
tree5b389d2ff6936bd2b4587ff600e67280207675c7
parent0a65579cdd28bed3e84e1b4929c3080da4f06d79
swiotlb: Refactor swiotlb_create_debugfs

Split the debugfs creation to make the code reusable for supporting
different bounce buffer pools.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Will Deacon <will@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c