diff options
Diffstat (limited to 'fs/devpts/inode.c')
-rw-r--r-- | fs/devpts/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index f2be44d4491f..bfb8a230bac9 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -130,7 +130,7 @@ static struct dentry *get_node(int num) | |||
130 | { | 130 | { |
131 | char s[12]; | 131 | char s[12]; |
132 | struct dentry *root = devpts_root; | 132 | struct dentry *root = devpts_root; |
133 | down(&root->d_inode->i_sem); | 133 | mutex_lock(&root->d_inode->i_mutex); |
134 | return lookup_one_len(s, root, sprintf(s, "%d", num)); | 134 | return lookup_one_len(s, root, sprintf(s, "%d", num)); |
135 | } | 135 | } |
136 | 136 | ||
@@ -161,7 +161,7 @@ int devpts_pty_new(struct tty_struct *tty) | |||
161 | if (!IS_ERR(dentry) && !dentry->d_inode) | 161 | if (!IS_ERR(dentry) && !dentry->d_inode) |
162 | d_instantiate(dentry, inode); | 162 | d_instantiate(dentry, inode); |
163 | 163 | ||
164 | up(&devpts_root->d_inode->i_sem); | 164 | mutex_unlock(&devpts_root->d_inode->i_mutex); |
165 | 165 | ||
166 | return 0; | 166 | return 0; |
167 | } | 167 | } |
@@ -178,7 +178,7 @@ struct tty_struct *devpts_get_tty(int number) | |||
178 | dput(dentry); | 178 | dput(dentry); |
179 | } | 179 | } |
180 | 180 | ||
181 | up(&devpts_root->d_inode->i_sem); | 181 | mutex_unlock(&devpts_root->d_inode->i_mutex); |
182 | 182 | ||
183 | return tty; | 183 | return tty; |
184 | } | 184 | } |
@@ -196,7 +196,7 @@ void devpts_pty_kill(int number) | |||
196 | } | 196 | } |
197 | dput(dentry); | 197 | dput(dentry); |
198 | } | 198 | } |
199 | up(&devpts_root->d_inode->i_sem); | 199 | mutex_unlock(&devpts_root->d_inode->i_mutex); |
200 | } | 200 | } |
201 | 201 | ||
202 | static int __init init_devpts_fs(void) | 202 | static int __init init_devpts_fs(void) |