diff options
author | Ajay Kaher <akaher@vmware.com> | 2023-07-28 23:50:45 +0530 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-07-30 18:13:33 -0400 |
commit | 2c6b6b1029d46a8760d6cba09b4e75cb1ac9b579 (patch) | |
tree | d729df766b8cc5478ea3e52bd3991c3c7769f2e4 /fs/tracefs/internal.h | |
parent | ba37ff75e04be7df5fa19dcd86f81c984294a37b (diff) | |
download | linux-2c6b6b1029d46a8760d6cba09b4e75cb1ac9b579.tar.gz linux-2c6b6b1029d46a8760d6cba09b4e75cb1ac9b579.tar.bz2 linux-2c6b6b1029d46a8760d6cba09b4e75cb1ac9b579.zip |
tracefs: Rename and export some tracefs functions
Export a few tracefs functions that will be needed by the eventfs dynamic
file system. Rename them to start with "tracefs_" to keep with the name
space.
start_creating -> tracefs_start_creating
failed_creating -> tracefs_failed_creating
end_creating -> tracefs_end_creating
Link: https://lkml.kernel.org/r/1690568452-46553-4-git-send-email-akaher@vmware.com
Signed-off-by: Ajay Kaher <akaher@vmware.com>
Co-developed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Tested-by: Ching-lin Yu <chinglinyu@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'fs/tracefs/internal.h')
-rw-r--r-- | fs/tracefs/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/tracefs/internal.h b/fs/tracefs/internal.h index 954ea005632b..7dfb7ebc1c3f 100644 --- a/fs/tracefs/internal.h +++ b/fs/tracefs/internal.h @@ -12,4 +12,9 @@ static inline struct tracefs_inode *get_tracefs(const struct inode *inode) { return container_of(inode, struct tracefs_inode, vfs_inode); } + +struct dentry *tracefs_start_creating(const char *name, struct dentry *parent); +struct dentry *tracefs_end_creating(struct dentry *dentry); +struct dentry *tracefs_failed_creating(struct dentry *dentry); +struct inode *tracefs_get_inode(struct super_block *sb); #endif /* _TRACEFS_INTERNAL_H */ |