Thread (30 messages) flat view 30 messages, 2 authors, 2021-06-15

Re: [PATCH v9 02/14] swiotlb: Refactor swiotlb_create_debugfs

From: Christoph Hellwig <hch@lst.de>
Date: 2021-06-14 06:17:44
Also in: intel-gfx, linux-devicetree, linux-iommu, linux-pci, lkml, xen-devel

On Fri, Jun 11, 2021 at 11:26:47PM +0800, Claire Chang wrote:
quoted hunk ↗ jump to hunk
Split the debugfs creation to make the code reusable for supporting
different bounce buffer pools, e.g. restricted DMA pool.

Signed-off-by: Claire Chang <redacted>
---
 kernel/dma/swiotlb.c | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index 1a1208c81e85..8a3e2b3b246d 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -64,6 +64,9 @@
 enum swiotlb_force swiotlb_force;
 
 struct io_tlb_mem *io_tlb_default_mem;
+#ifdef CONFIG_DEBUG_FS
+static struct dentry *debugfs_dir;
+#endif
What about moving this declaration into the main CONFIG_DEBUG_FS block
near the functions using it?

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help