diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index 1428af863765..969717d5fcb8 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -43,7 +43,7 @@ * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 * from: i386 Id: pmap.c,v 1.193 1998/04/19 15:22:48 bde Exp * with some ideas from NetBSD's alpha pmap - * $Id: pmap.c,v 1.21 1999/04/28 15:52:09 dt Exp $ + * $Id: pmap.c,v 1.23 1999/05/11 18:59:56 dt Exp $ */ /* @@ -2302,7 +2302,7 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr, * if we are processing a major portion of the object, then scan the * entire thing. */ - if (psize > (object->size >> 2)) { + if (psize > (object->resident_page_count >> 2)) { objpgs = psize; for (p = TAILQ_FIRST(&object->memq); diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 2a8eb195f82e..570c72898ef6 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.234 1999/04/28 01:03:23 luoqi Exp $ + * $Id: pmap.c,v 1.235 1999/05/18 06:01:49 alc Exp $ */ /* @@ -2406,7 +2406,7 @@ pmap_object_init_pt(pmap, addr, object, pindex, size, limit) * if we are processing a major portion of the object, then scan the * entire thing. */ - if (psize > (object->size >> 2)) { + if (psize > (object->resident_page_count >> 2)) { objpgs = psize; for (p = TAILQ_FIRST(&object->memq); diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 2a8eb195f82e..570c72898ef6 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.234 1999/04/28 01:03:23 luoqi Exp $ + * $Id: pmap.c,v 1.235 1999/05/18 06:01:49 alc Exp $ */ /* @@ -2406,7 +2406,7 @@ pmap_object_init_pt(pmap, addr, object, pindex, size, limit) * if we are processing a major portion of the object, then scan the * entire thing. */ - if (psize > (object->size >> 2)) { + if (psize > (object->resident_page_count >> 2)) { objpgs = psize; for (p = TAILQ_FIRST(&object->memq);