[Ocfs2-devel] [PATCH]Enable 2.6 file data flushing

Rusty Lynch rusty at linux.co.intel.com
Tue Mar 23 20:11:53 CST 2004


The following small patch makes a 2.6 built kernel flush it's 
data buffers to disk on ocfs_sync_inode, fixing bug #46

http://oss.oracle.com/bugzilla/show_bug.cgi?id=46

    --rusty

Index: src/file.c
===================================================================
--- src/file.c	(revision 807)
+++ src/file.c	(working copy)
@@ -68,6 +68,7 @@
 {
 	int status;
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+	filemap_fdatawrite(inode->i_mapping);	
 	status = sync_mapping_buffers(inode->i_mapping);
 #else
 	status = fsync_inode_buffers(inode);


More information about the Ocfs2-devel mailing list