diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-07-27 23:29:22 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-09-03 16:30:56 +0300 |
commit | 46c46f8df9aa425cc4d6bc89d57a6fedf83dc797 (patch) | |
tree | 2997e5e2f33870cfa94ed048216df9b419f8b150 /fs/devpts | |
parent | 6effcab4da7b6a579699c2d5b9c06eb2f1fb3610 (diff) | |
download | linux-46c46f8df9aa425cc4d6bc89d57a6fedf83dc797.tar.xz |
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>
Diffstat (limited to 'fs/devpts')
-rw-r--r-- | fs/devpts/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index beeadca23b05..42e5a766d33c 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c @@ -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() */ } |