patch-1.3.9 linux/fs/nfs/mmap.c

Next file: linux/fs/proc/Makefile
Previous file: linux/fs/nfs/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.8/linux/fs/nfs/mmap.c linux/fs/nfs/mmap.c
@@ -73,9 +73,10 @@
 #endif
 
 	tmp = page + PAGE_SIZE;
-	while (clear--) {
-		*(char *)--tmp = 0;
+	if (clear > 0){
+		memset ((char*)(tmp-clear),0,clear);
 	}
+
 	return page;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this