msync() on NFS still broken in 2.3.40, patch still fixes

Jim Studt jim en federated.com
Dom Ene 23 08:12:36 CST 2000


I just checked msync() on NFS on a 2.3.40 i386 machine, it is still broken.
nfs_writepage is returning PAGE_SIZE on success instead of 0.

This patch to fs/nfs/write.c fixes it...

--- write.c~	Wed Dec 15 17:24:12 1999
+++ write.c	Sat Jan 22 16:28:07 2000
@@ -416,7 +416,9 @@
 int
 nfs_writepage(struct dentry * dentry, struct page *page)
 {
-	return nfs_writepage_sync(dentry, dentry->d_inode, page, 0, PAGE_SIZE);
+	int result = nfs_writepage_sync(dentry, dentry->d_inode, page, 0, PAGE_SIZE); 
+	if ( result == PAGE_SIZE) return 0; 
+	return result; 
 }
 
 /*

-- 
                                     Jim Studt, President
                                     The Federated Software Group, Inc.

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



Más información sobre la lista de distribución Ayuda