patch-2.3.41 linux/fs/nfs/write.c

Next file: linux/fs/nfsd/nfsfh.c
Previous file: linux/fs/ncpfs/mmap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -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; 
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)