summaryrefslogtreecommitdiffstats
path: root/fs/devpts/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-07-27 22:29:22 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2019-09-03 15:30:56 +0200
commit46c46f8df9aa425cc4d6bc89d57a6fedf83dc797 (patch)
tree2997e5e2f33870cfa94ed048216df9b419f8b150 /fs/devpts/inode.c
parentinfiniband: don't bother with d_delete() (diff)
downloadlinux-46c46f8df9aa425cc4d6bc89d57a6fedf83dc797.tar.xz
linux-46c46f8df9aa425cc4d6bc89d57a6fedf83dc797.zip
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/inode.c')
-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() */
}