Skip to content

Commit

Permalink
devpts_pty_kill(): don't bother with d_delete()
Browse files Browse the repository at this point in the history
we are not retaining dentries there anyway (simple_dentry_operations),
so d_delete()+dput() == d_drop()+dput()

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Sep 3, 2019
1 parent 6effcab commit 46c46f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/devpts/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ void devpts_pty_kill(struct dentry *dentry)
dentry->d_fsdata = NULL;
drop_nlink(dentry->d_inode);
fsnotify_unlink(d_inode(dentry->d_parent), dentry);
d_delete(dentry);
d_drop(dentry);
dput(dentry); /* d_alloc_name() in devpts_pty_new() */
}

Expand Down

0 comments on commit 46c46f8

Please sign in to comment.