diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 20:31:38 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 20:31:38 -0500 |
| commit | 80c0531514516e43ae118ddf38424e06e5c3cb3c (patch) | |
| tree | 2eef8cf8fdf505b18f83078d1eb41167e98f5b54 /fs/devpts/inode.c | |
| parent | a457aa6c2bdd743bbbffd3f9e4fdbd8c71f8af1b (diff) | |
| parent | 11b751ae8c8ca3fa24c85bd5a3e51dd9f95cda17 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/mingo/mutex-2.6
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) |
