[Ocfs2-commits] mfasheh commits r809 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Mar 24 16:41:02 CST 2004
Author: mfasheh
Date: 2004-03-24 16:41:00 -0600 (Wed, 24 Mar 2004)
New Revision: 809
Modified:
trunk/src/file.c
Log:
* include a patch by Rusty Lynch <rusty at linux.co.intel.com> which added
calls to flush mmap data at the right times. Otherwise, we were losing
that stuff.
Modified: trunk/src/file.c
===================================================================
--- trunk/src/file.c 2004-03-24 19:57:07 UTC (rev 808)
+++ trunk/src/file.c 2004-03-24 22:41:00 UTC (rev 809)
@@ -68,8 +68,10 @@
{
int status;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+ filemap_fdatawrite(inode->i_mapping);
status = sync_mapping_buffers(inode->i_mapping);
#else
+ filemap_fdatasync(inode->i_mapping);
status = fsync_inode_buffers(inode);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,18)
if (!status)
More information about the Ocfs2-commits
mailing list