aboutsummaryrefslogtreecommitdiffstats
path: root/fs/devpts/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/devpts/inode.c')
-rw-r--r--fs/devpts/inode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index 643e57b622bd..06ef9a255c76 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -19,6 +19,7 @@
19#include <linux/tty.h> 19#include <linux/tty.h>
20#include <linux/devpts_fs.h> 20#include <linux/devpts_fs.h>
21#include <linux/parser.h> 21#include <linux/parser.h>
22#include <linux/fsnotify.h>
22 23
23#define DEVPTS_SUPER_MAGIC 0x1cd1 24#define DEVPTS_SUPER_MAGIC 0x1cd1
24 25
@@ -178,8 +179,10 @@ int devpts_pty_new(struct tty_struct *tty)
178 inode->i_private = tty; 179 inode->i_private = tty;
179 180
180 dentry = get_node(number); 181 dentry = get_node(number);
181 if (!IS_ERR(dentry) && !dentry->d_inode) 182 if (!IS_ERR(dentry) && !dentry->d_inode) {
182 d_instantiate(dentry, inode); 183 d_instantiate(dentry, inode);
184 fsnotify_create(devpts_root->d_inode, dentry);
185 }
183 186
184 mutex_unlock(&devpts_root->d_inode->i_mutex); 187 mutex_unlock(&devpts_root->d_inode->i_mutex);
185 188