summaryrefslogtreecommitdiffstats
path: root/fs/devpts
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2019-05-26 16:34:06 +0200
committerJan Kara <jack@suse.cz>2019-06-20 14:46:34 +0200
commitfd0d506f2b8247b3defcca2723622e404fb55c64 (patch)
tree4ffdb29bf5b2a8506ba4b4665eba173018909efb /fs/devpts
parenttracefs: call fsnotify_{unlink,rmdir}() hooks (diff)
downloadlinux-fd0d506f2b8247b3defcca2723622e404fb55c64.tar.xz
linux-fd0d506f2b8247b3defcca2723622e404fb55c64.zip
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>
Diffstat (limited to 'fs/devpts')
-rw-r--r--fs/devpts/inode.c1
1 files changed, 1 insertions, 0 deletions
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() */
}