[Ocfs2-commits] mfasheh commits r1310 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jul 28 16:59:46 CDT 2004


Author: mfasheh
Date: 2004-07-28 15:59:45 -0500 (Wed, 28 Jul 2004)
New Revision: 1310

Modified:
   trunk/src/file.c
Log:
* include a patch by  <sonic.zhang at intel.com>:
        A patch to fix a typo error in ocfs_file_read(), which causes           
        performance drop.                                                       



Modified: trunk/src/file.c
===================================================================
--- trunk/src/file.c	2004-07-28 17:30:23 UTC (rev 1309)
+++ trunk/src/file.c	2004-07-28 20:59:45 UTC (rev 1310)
@@ -853,11 +853,9 @@
 			filp->f_flags |= O_DIRECT;
 		else
 			filp->f_flags &= ~O_DIRECT;
-		ret = generic_file_write (filp, buf, count, ppos);
+		ret = generic_file_read (filp, buf, count, ppos);
 		filp->f_flags = savedflags;
 	}
-
-	ret = generic_file_read (filp, buf, count, ppos);
 #else
 	if (do_direct_io) 
 		ret = ocfs_rw_direct (READ, filp, buf, count, ppos);



More information about the Ocfs2-commits mailing list