From: Amir Goldstein Date: Sun, 26 May 2019 14:34:06 +0000 (+0300) Subject: devpts: call fsnotify_unlink() hook X-Git-Tag: v5.3-rc1~153^2~5 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=fd0d506f2b8247b3defcca2723622e404fb55c64;p=linux-block.git 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 Signed-off-by: Jan Kara --- diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 2c14ae044dce..beeadca23b05 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c @@ -621,6 +621,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); dput(dentry); /* d_alloc_name() in devpts_pty_new() */ }