Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46c46f8d authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6effcab4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() */
}