git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e461b55
)
darwin-deal-with-unclean-pages-from-vm-20020107
author
Chaskiel M Grundman
<cg2v@andrew.cmu.edu>
Tue, 7 Jan 2003 23:03:35 +0000 (23:03 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Tue, 7 Jan 2003 23:03:35 +0000 (23:03 +0000)
based on report from lha@stacken.kth.se
src/afs/DARWIN/osi_vnodeops.c
patch
|
blob
|
history
diff --git
a/src/afs/DARWIN/osi_vnodeops.c
b/src/afs/DARWIN/osi_vnodeops.c
index
bd020ed
..
16ddb4b
100644
(file)
--- a/
src/afs/DARWIN/osi_vnodeops.c
+++ b/
src/afs/DARWIN/osi_vnodeops.c
@@
-467,6
+467,11
@@
afs_vop_pagein(ap)
}
afs_BozonUnlock(&tvc->pvnLock, tvc);
AFS_GUNLOCK();
+
+ /* Zero out rest of last page if there wasn't enough data in the file */
+ if (code == 0 && auio.uio_resid > 0)
+ memset(aiov.iov_base, 0, auio.uio_resid);
+
kernel_upl_unmap(kernel_map, pl);
if (!nocommit) {
if (code)