aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.c
diff options
context:
space:
mode:
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",