Thread (43 messages) flat view 43 messages, 4 authors, 2024-01-31

Re: [PATCH 2/6] eventfsfs: initialize the tracefs inode properly

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2024-01-30 19:49:17
Also in: lkml

On Tue, 30 Jan 2024 11:03:51 -0800
Linus Torvalds [off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -328,7 +328,9 @@ static struct dentry *create_file(const char *name, umode_t mode,
 	inode->i_ino = EVENTFS_FILE_INODE_INO;
 
 	ti = get_tracefs(inode);
-	ti->flags |= TRACEFS_EVENT_INODE;
+	ti->flags = TRACEFS_EVENT_INODE;
+	ti->private = NULL;			// Directories have 'ei', files not
Although ti->private does need to be initialized here.

-- Steve
+
 	d_instantiate(dentry, inode);
 	fsnotify_create(dentry->d_parent->d_inode, dentry);
 	return eventfs_end_creating(dentry);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help