diff options
author | Jes Sorensen <jes@sgi.com> | 2006-01-09 18:59:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@hera.kernel.org> | 2006-01-09 18:59:24 -0500 |
commit | 1b1dcc1b57a49136f118a0f16367256ff9994a69 (patch) | |
tree | b0b36d4f41d28c9d6514fb309d33c1a084d6309b /fs/ext2/acl.c | |
parent | 794ee1baee1c26be40410233e6c20bceb2b03c08 (diff) |
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
This patch converts the inode semaphore to a mutex. I have tested it on
XFS and compiled as much as one can consider on an ia64. Anyway your
luck with it might be different.
Modified-by: Ingo Molnar <mingo@elte.hu>
(finished the conversion)
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/ext2/acl.c')
-rw-r--r-- | fs/ext2/acl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext2/acl.c b/fs/ext2/acl.c index 6af2f4130290..239133d01d91 100644 --- a/fs/ext2/acl.c +++ b/fs/ext2/acl.c | |||
@@ -149,7 +149,7 @@ ext2_iset_acl(struct inode *inode, struct posix_acl **i_acl, | |||
149 | } | 149 | } |
150 | 150 | ||
151 | /* | 151 | /* |
152 | * inode->i_sem: don't care | 152 | * inode->i_mutex: don't care |
153 | */ | 153 | */ |
154 | static struct posix_acl * | 154 | static struct posix_acl * |
155 | ext2_get_acl(struct inode *inode, int type) | 155 | ext2_get_acl(struct inode *inode, int type) |
@@ -211,7 +211,7 @@ ext2_get_acl(struct inode *inode, int type) | |||
211 | } | 211 | } |
212 | 212 | ||
213 | /* | 213 | /* |
214 | * inode->i_sem: down | 214 | * inode->i_mutex: down |
215 | */ | 215 | */ |
216 | static int | 216 | static int |
217 | ext2_set_acl(struct inode *inode, int type, struct posix_acl *acl) | 217 | ext2_set_acl(struct inode *inode, int type, struct posix_acl *acl) |
@@ -301,8 +301,8 @@ ext2_permission(struct inode *inode, int mask, struct nameidata *nd) | |||
301 | /* | 301 | /* |
302 | * Initialize the ACLs of a new inode. Called from ext2_new_inode. | 302 | * Initialize the ACLs of a new inode. Called from ext2_new_inode. |
303 | * | 303 | * |
304 | * dir->i_sem: down | 304 | * dir->i_mutex: down |
305 | * inode->i_sem: up (access to inode is still exclusive) | 305 | * inode->i_mutex: up (access to inode is still exclusive) |
306 | */ | 306 | */ |
307 | int | 307 | int |
308 | ext2_init_acl(struct inode *inode, struct inode *dir) | 308 | ext2_init_acl(struct inode *inode, struct inode *dir) |
@@ -361,7 +361,7 @@ cleanup: | |||
361 | * for directories) are added. There are no more bits available in the | 361 | * for directories) are added. There are no more bits available in the |
362 | * file mode. | 362 | * file mode. |
363 | * | 363 | * |
364 | * inode->i_sem: down | 364 | * inode->i_mutex: down |
365 | */ | 365 | */ |
366 | int | 366 | int |
367 | ext2_acl_chmod(struct inode *inode) | 367 | ext2_acl_chmod(struct inode *inode) |