mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
darwin-deal-with-unclean-pages-from-vm-20020107
based on report from lha@stacken.kth.se
This commit is contained in:
parent
e461b558ba
commit
4b690db92f
@ -467,6 +467,11 @@ afs_vop_pagein(ap)
|
|||||||
}
|
}
|
||||||
afs_BozonUnlock(&tvc->pvnLock, tvc);
|
afs_BozonUnlock(&tvc->pvnLock, tvc);
|
||||||
AFS_GUNLOCK();
|
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);
|
kernel_upl_unmap(kernel_map, pl);
|
||||||
if (!nocommit) {
|
if (!nocommit) {
|
||||||
if (code)
|
if (code)
|
||||||
|
Loading…
Reference in New Issue
Block a user