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
- Lines: 13
- Date:
Mon Jul 10 17:10:41 1995
- Orig file:
v1.3.8/linux/fs/nfs/mmap.c
- Orig date:
Mon Jan 23 10:38:29 1995
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