aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-01-10 18:41:43 -0500
committerMark Fasheh <mark.fasheh@oracle.com>2006-02-03 16:47:19 -0500
commit251b6eccbeff4f0f8a3509769b327705e899f5dd (patch)
tree7da835c3bebc8150a1a1ae6abb681a1e1a9c5f36 /fs/ocfs2/journal.c
parentaee93ac4b7ad461255939248d0d51566cff77e05 (diff)
[OCFS2] Make ip_io_sem a mutex
ip_io_sem is now ip_io_mutex. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r--fs/ocfs2/journal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index 303c8d96457f..65bd69d1c710 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -401,7 +401,7 @@ int ocfs2_journal_access(struct ocfs2_journal_handle *handle,
401 * j_trans_barrier for us. */ 401 * j_trans_barrier for us. */
402 ocfs2_set_inode_lock_trans(OCFS2_SB(inode->i_sb)->journal, inode); 402 ocfs2_set_inode_lock_trans(OCFS2_SB(inode->i_sb)->journal, inode);
403 403
404 down(&OCFS2_I(inode)->ip_io_sem); 404 mutex_lock(&OCFS2_I(inode)->ip_io_mutex);
405 switch (type) { 405 switch (type) {
406 case OCFS2_JOURNAL_ACCESS_CREATE: 406 case OCFS2_JOURNAL_ACCESS_CREATE:
407 case OCFS2_JOURNAL_ACCESS_WRITE: 407 case OCFS2_JOURNAL_ACCESS_WRITE:
@@ -416,7 +416,7 @@ int ocfs2_journal_access(struct ocfs2_journal_handle *handle,
416 status = -EINVAL; 416 status = -EINVAL;
417 mlog(ML_ERROR, "Uknown access type!\n"); 417 mlog(ML_ERROR, "Uknown access type!\n");
418 } 418 }
419 up(&OCFS2_I(inode)->ip_io_sem); 419 mutex_unlock(&OCFS2_I(inode)->ip_io_mutex);
420 420
421 if (status < 0) 421 if (status < 0)
422 mlog(ML_ERROR, "Error %d getting %d access to buffer!\n", 422 mlog(ML_ERROR, "Error %d getting %d access to buffer!\n",