aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/acl.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-01-24 16:22:50 -0500
committerDave Kleikamp <shaggy@austin.ibm.com>2006-01-24 16:22:50 -0500
commit1de87444f8f91009b726108c9a56600645ee8751 (patch)
tree66f731a701a005be55337792bf873c182470141a /fs/jfs/acl.c
parent0a0fc0ddbe732779366ab6b1b879f62195e65967 (diff)
JFS: semaphore to mutex conversion.
the conversion was generated via scripts, and the result was validated automatically via a script as well. build and boot tested. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/jfs/acl.c')
-rw-r--r--fs/jfs/acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jfs/acl.c b/fs/jfs/acl.c
index 461e4934ca7c..e0b6fdab200c 100644
--- a/fs/jfs/acl.c
+++ b/fs/jfs/acl.c
@@ -207,12 +207,12 @@ static int jfs_acl_chmod(struct inode *inode)
207 rc = posix_acl_chmod_masq(clone, inode->i_mode); 207 rc = posix_acl_chmod_masq(clone, inode->i_mode);
208 if (!rc) { 208 if (!rc) {
209 tid_t tid = txBegin(inode->i_sb, 0); 209 tid_t tid = txBegin(inode->i_sb, 0);
210 down(&JFS_IP(inode)->commit_sem); 210 mutex_lock(&JFS_IP(inode)->commit_mutex);
211 rc = jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, clone); 211 rc = jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, clone);
212 if (!rc) 212 if (!rc)
213 rc = txCommit(tid, 1, &inode, 0); 213 rc = txCommit(tid, 1, &inode, 0);
214 txEnd(tid); 214 txEnd(tid);
215 up(&JFS_IP(inode)->commit_sem); 215 mutex_unlock(&JFS_IP(inode)->commit_mutex);
216 } 216 }
217 217
218 posix_acl_release(clone); 218 posix_acl_release(clone);