[Ocfs2-commits] mfasheh commits r2179 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Apr 26 15:47:23 CDT 2005


Author: mfasheh
Signed-off-by: khackel
Date: 2005-04-26 15:47:21 -0500 (Tue, 26 Apr 2005)
New Revision: 2179

Modified:
   trunk/fs/ocfs2/file.c
Log:
* should mlog_errrno ret, not status.

Signed-off-by: khackel



Modified: trunk/fs/ocfs2/file.c
===================================================================
--- trunk/fs/ocfs2/file.c	2005-04-26 18:56:36 UTC (rev 2178)
+++ trunk/fs/ocfs2/file.c	2005-04-26 20:47:21 UTC (rev 2179)
@@ -301,7 +301,6 @@
 	struct dentry *dentry = filp->f_dentry;
 	struct inode *inode = dentry->d_inode;
 	ocfs2_backing_inode *target_binode;
-	int status = 0;
 	int do_direct_io = 0;
 	int sector_size;
 	DECLARE_BUFFER_LOCK_CTXT(ctxt);
@@ -333,7 +332,7 @@
 	ret = ocfs2_setup_io_locks(inode->i_sb, inode, buf, count, &ctxt,
 				   &target_binode);
 	if (ret < 0) {
-		mlog_errno(status);
+		mlog_errno(ret);
 		goto bail;
 	}
 
@@ -341,7 +340,7 @@
 
 	ret = ocfs2_lock_buffer_inodes(&ctxt, NULL);
 	if (ret < 0) {
-		mlog_errno(status);
+		mlog_errno(ret);
 		goto bail_unlock;
 	}
 



More information about the Ocfs2-commits mailing list