mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
devpts_pty_kill(): don't bother with d_delete()
we are not retaining dentries there anyway (simple_dentry_operations), so d_delete()+dput() == d_drop()+dput() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6effcab4da
commit
46c46f8df9
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ void devpts_pty_kill(struct dentry *dentry)
|
||||||
dentry->d_fsdata = NULL;
|
dentry->d_fsdata = NULL;
|
||||||
drop_nlink(dentry->d_inode);
|
drop_nlink(dentry->d_inode);
|
||||||
fsnotify_unlink(d_inode(dentry->d_parent), dentry);
|
fsnotify_unlink(d_inode(dentry->d_parent), dentry);
|
||||||
d_delete(dentry);
|
d_drop(dentry);
|
||||||
dput(dentry); /* d_alloc_name() in devpts_pty_new() */
|
dput(dentry); /* d_alloc_name() in devpts_pty_new() */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue