Skip to content

Commit 408600b

Browse files
torvaldsrostedt
authored andcommitted
eventfs: Remove unused d_parent pointer field
It's never used Link: https://lore.kernel.org/linux-trace-kernel/[email protected]/ Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Cc: [email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Christian Brauner <[email protected]> Cc: Al Viro <[email protected]> Cc: Ajay Kaher <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Fixes: c1504e5 ("eventfs: Implement eventfs dir creation functions") Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 49304c2 commit 408600b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

fs/tracefs/event_inode.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,8 @@ struct eventfs_inode *eventfs_create_dir(const char *name, struct eventfs_inode
680680
INIT_LIST_HEAD(&ei->list);
681681

682682
mutex_lock(&eventfs_mutex);
683-
if (!parent->is_freed) {
683+
if (!parent->is_freed)
684684
list_add_tail(&ei->list, &parent->children);
685-
ei->d_parent = parent->dentry;
686-
}
687685
mutex_unlock(&eventfs_mutex);
688686

689687
/* Was the parent freed? */

fs/tracefs/internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ struct eventfs_attr {
3636
* @name: the name of the directory to create
3737
* @children: link list into the child eventfs_inode
3838
* @dentry: the dentry of the directory
39-
* @d_parent: pointer to the parent's dentry
4039
* @d_children: The array of dentries to represent the files when created
4140
* @entry_attrs: Saved mode and ownership of the @d_children
4241
* @attr: Saved mode and ownership of eventfs_inode itself
@@ -51,7 +50,6 @@ struct eventfs_inode {
5150
const char *name;
5251
struct list_head children;
5352
struct dentry *dentry; /* Check is_freed to access */
54-
struct dentry *d_parent;
5553
struct dentry **d_children;
5654
struct eventfs_attr *entry_attrs;
5755
struct eventfs_attr attr;

0 commit comments

Comments
 (0)