From c794f967bcf17e0a67a6769ec58c05bed8aad29b Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 27 Jul 2019 16:29:22 -0400 Subject: [PATCH] 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 --- fs/devpts/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index beeadca23b05c..42e5a766d33c7 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() */ } -- 2.39.5