diff options
Diffstat (limited to 'fs/devpts')
-rw-r--r-- | fs/devpts/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index f7aef5bb584a..5bf06a10dddf 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -177,7 +177,7 @@ int devpts_pty_new(struct tty_struct *tty) | |||
177 | inode->i_gid = config.setgid ? config.gid : current->fsgid; | 177 | inode->i_gid = config.setgid ? config.gid : current->fsgid; |
178 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 178 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
179 | init_special_inode(inode, S_IFCHR|config.mode, device); | 179 | init_special_inode(inode, S_IFCHR|config.mode, device); |
180 | inode->u.generic_ip = tty; | 180 | inode->i_private = tty; |
181 | 181 | ||
182 | dentry = get_node(number); | 182 | dentry = get_node(number); |
183 | if (!IS_ERR(dentry) && !dentry->d_inode) | 183 | if (!IS_ERR(dentry) && !dentry->d_inode) |
@@ -196,7 +196,7 @@ struct tty_struct *devpts_get_tty(int number) | |||
196 | tty = NULL; | 196 | tty = NULL; |
197 | if (!IS_ERR(dentry)) { | 197 | if (!IS_ERR(dentry)) { |
198 | if (dentry->d_inode) | 198 | if (dentry->d_inode) |
199 | tty = dentry->d_inode->u.generic_ip; | 199 | tty = dentry->d_inode->i_private; |
200 | dput(dentry); | 200 | dput(dentry); |
201 | } | 201 | } |
202 | 202 | ||