Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54548
b: refs/heads/master
c: 3972b7f
h: refs/heads/master
v: v3
  • Loading branch information
Florin Malita authored and Linus Torvalds committed May 8, 2007
1 parent bd9b686 commit bc16174
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ae7075bcd805c3aa5e8f53effc63a4562d6110e
refs/heads/master: 3972b7f67bf1a352a4a4c350b2245d759a41ea06
5 changes: 4 additions & 1 deletion trunk/fs/devpts/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/tty.h>
#include <linux/devpts_fs.h>
#include <linux/parser.h>
#include <linux/fsnotify.h>

#define DEVPTS_SUPER_MAGIC 0x1cd1

Expand Down Expand Up @@ -178,8 +179,10 @@ int devpts_pty_new(struct tty_struct *tty)
inode->i_private = tty;

dentry = get_node(number);
if (!IS_ERR(dentry) && !dentry->d_inode)
if (!IS_ERR(dentry) && !dentry->d_inode) {
d_instantiate(dentry, inode);
fsnotify_create(devpts_root->d_inode, dentry);
}

mutex_unlock(&devpts_root->d_inode->i_mutex);

Expand Down

0 comments on commit bc16174

Please sign in to comment.