nfs MAP_SHARED corruption fix

From: Andrea Arcangeli (andrea@suse.de)
Date: Tue May 08 2001 - 09:00:50 EST


This fixes corruption with MAP_SHARED on top of nfs filesystem in 2.4:

--- 2.4.5pre1aa2/fs/nfs/write.c.~1~ Tue May 1 19:35:29 2001
+++ 2.4.5pre1aa2/fs/nfs/write.c Tue May 8 02:04:15 2001
@@ -1533,6 +1533,7 @@
         if (!inode && file)
                 inode = file->f_dentry->d_inode;
 
+ filemap_fdatasync(inode->i_mapping);
         do {
                 error = 0;
                 if (wait)

Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:13 EST