[Ocfs2-commits] manish commits r2380 - trunk/fs/ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Jun 8 20:24:10 CDT 2005
Author: manish
Signed-off-by: mfasheh
Date: 2005-06-08 20:24:08 -0500 (Wed, 08 Jun 2005)
New Revision: 2380
Modified:
trunk/fs/ocfs2/mmap.c
Log:
Clear the locked flag on the binode on error cleanup.
Signed-off-by: mfasheh
Modified: trunk/fs/ocfs2/mmap.c
===================================================================
--- trunk/fs/ocfs2/mmap.c 2005-06-08 17:52:43 UTC (rev 2379)
+++ trunk/fs/ocfs2/mmap.c 2005-06-09 01:24:08 UTC (rev 2380)
@@ -366,10 +366,12 @@
binode->ba_lock_meta_level,
0, ctxt->b_cb,
ctxt->b_cb_data);
+
if (status < 0) {
mlog_errno(status);
goto bail;
}
+
binode->ba_meta_locked = 1;
}
@@ -380,8 +382,13 @@
if (status < 0) {
if (status == -EIOCBQUEUED)
goto bail;
+
+ /* clean up the metadata lock that we took
+ * above
+ */
ocfs2_meta_unlock(inode,
binode->ba_lock_meta_level);
+ binode->ba_meta_locked = 0;
mlog_errno(status);
goto bail;
More information about the Ocfs2-commits
mailing list