eventfs: Implement functions to create files and dirs when accessed
authorAjay Kaher <akaher@vmware.com>
Fri, 28 Jul 2023 18:20:49 +0000 (23:50 +0530)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sun, 30 Jul 2023 22:13:34 +0000 (18:13 -0400)
commita3760079177765b7f1782419f1c3e12facaf1e9d
tree7cd48857992f198cf60a8e09cb16886e9807f622
parent63940449555e799d387f316993ad824476c16953
eventfs: Implement functions to create files and dirs when accessed

Add create_file() and create_dir() functions to create the files and
directories respectively when they are accessed. The functions will be
called from the lookup operation of the inode_operations or from the open
function of file_operations.

Link: https://lkml.kernel.org/r/1690568452-46553-8-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>
fs/tracefs/event_inode.c
fs/tracefs/inode.c
fs/tracefs/internal.h