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/configfs/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/configfs/inode.c')
-rw-r--r-- | fs/configfs/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index 6b274c6d428f..6577c588de9d 100644 --- a/fs/configfs/inode.c +++ b/fs/configfs/inode.c | |||
@@ -122,7 +122,7 @@ const unsigned char * configfs_get_name(struct configfs_dirent *sd) | |||
122 | 122 | ||
123 | /* | 123 | /* |
124 | * Unhashes the dentry corresponding to given configfs_dirent | 124 | * Unhashes the dentry corresponding to given configfs_dirent |
125 | * Called with parent inode's i_sem held. | 125 | * Called with parent inode's i_mutex held. |
126 | */ | 126 | */ |
127 | void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent) | 127 | void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent) |
128 | { | 128 | { |
@@ -145,7 +145,7 @@ void configfs_hash_and_remove(struct dentry * dir, const char * name) | |||
145 | struct configfs_dirent * sd; | 145 | struct configfs_dirent * sd; |
146 | struct configfs_dirent * parent_sd = dir->d_fsdata; | 146 | struct configfs_dirent * parent_sd = dir->d_fsdata; |
147 | 147 | ||
148 | down(&dir->d_inode->i_sem); | 148 | mutex_lock(&dir->d_inode->i_mutex); |
149 | list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { | 149 | list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { |
150 | if (!sd->s_element) | 150 | if (!sd->s_element) |
151 | continue; | 151 | continue; |
@@ -156,7 +156,7 @@ void configfs_hash_and_remove(struct dentry * dir, const char * name) | |||
156 | break; | 156 | break; |
157 | } | 157 | } |
158 | } | 158 | } |
159 | up(&dir->d_inode->i_sem); | 159 | mutex_unlock(&dir->d_inode->i_mutex); |
160 | } | 160 | } |
161 | 161 | ||
162 | 162 | ||