summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-07-27 16:29:22 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-09-03 09:30:56 -0400
commit46c46f8df9aa425cc4d6bc89d57a6fedf83dc797 (patch)
tree2997e5e2f33870cfa94ed048216df9b419f8b150
parent6effcab4da7b6a579699c2d5b9c06eb2f1fb3610 (diff)
downloadlinux-46c46f8df9aa425cc4d6bc89d57a6fedf83dc797.tar.bz2
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>
-rw-r--r--fs/devpts/inode.c2
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() */
}