Skip to content

Commit fd0d506

Browse files
amir73iljankara
authored andcommitted
devpts: call fsnotify_unlink() hook
This will allow generating fsnotify delete events after the fsnotify_nameremove() hook is removed from d_delete(). Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 4bf2377 commit fd0d506

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/devpts/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ void devpts_pty_kill(struct dentry *dentry)
621621

622622
dentry->d_fsdata = NULL;
623623
drop_nlink(dentry->d_inode);
624+
fsnotify_unlink(d_inode(dentry->d_parent), dentry);
624625
d_delete(dentry);
625626
dput(dentry); /* d_alloc_name() in devpts_pty_new() */
626627
}

0 commit comments

Comments
 (0)