diff mbox series

[RFC,1/6] debugfs: Add temporary "#define debugfs_node dentry" directives

Message ID 20250210052039.144513-2-me@davidreaver.com (mailing list archive)
State New
Headers show
Series debugfs: Replace dentry with an opaque handle in debugfs API | expand

Commit Message

David Reaver Feb. 10, 2025, 5:20 a.m. UTC
Add some temporary "#define debugfs_node dentry" directives to facilitate
migrating debugfs APIs from dentry to a new opaque descriptor,
debugfs_node. Subsequent commits that replace dentry with debugfs_node rely
on these #defines until the final commit in this series removes them.

This is also added to dcache.h, right below struct dentry, so it is
available where dentry is transitively included.

Signed-off-by: David Reaver <me@davidreaver.com>
---
 include/linux/dcache.h  | 2 ++
 include/linux/debugfs.h | 2 ++
 2 files changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 4afb60365675..4b0c11cd3d50 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -127,6 +127,8 @@  struct dentry {
 	} d_u;
 };
 
+#define debugfs_node dentry
+
 /*
  * dentry->d_lock spinlock nesting subclasses:
  *
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index fa2568b4380d..e6ee571e8c36 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -21,6 +21,8 @@ 
 struct device;
 struct file_operations;
 
+#define debugfs_node dentry
+
 struct debugfs_blob_wrapper {
 	void *data;
 	unsigned long size;