Skip to content

Commit 46c46f8

Browse files
author
Al Viro
committed
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>
1 parent 6effcab commit 46c46f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/devpts/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ void devpts_pty_kill(struct dentry *dentry)
622622
dentry->d_fsdata = NULL;
623623
drop_nlink(dentry->d_inode);
624624
fsnotify_unlink(d_inode(dentry->d_parent), dentry);
625-
d_delete(dentry);
625+
d_drop(dentry);
626626
dput(dentry); /* d_alloc_name() in devpts_pty_new() */
627627
}
628628

0 commit comments

Comments
 (0)