Fix confusion of size of transfer with size of the pager.

PR:		11658
Broken in:	1.89 (1998/03/07)
This commit is contained in:
dt 1999-05-15 23:42:39 +00:00
parent cfb8aeeb36
commit 86394ee90e

View File

@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
* $Id: vnode_pager.c,v 1.108 1999/05/02 23:57:16 alc Exp $
* $Id: vnode_pager.c,v 1.109 1999/05/06 20:00:34 phk Exp $
*/
/*
@ -768,7 +768,7 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage)
nextoff = tfoff + PAGE_SIZE;
mt = m[i];
if (nextoff <= size) {
if (nextoff <= object->un_pager.vnp.vnp_size) {
/*
* Read filled up entire page.
*/
@ -786,7 +786,8 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage)
* we just try to clear the piece that we couldn't
* read.
*/
vm_page_set_validclean(mt, 0, size - tfoff);
vm_page_set_validclean(mt, 0,
object->un_pager.vnp.vnp_size - tfoff);
/* handled by vm_fault now */
/* vm_page_zero_invalid(mt, FALSE); */
}