From 21d7ec8915a4a1f75e2b613a81144eaa0bd69abd Mon Sep 17 00:00:00 2001 From: Benno Rice Date: Wed, 20 Mar 2002 05:25:33 +0000 Subject: [PATCH] Increment pmap_pvo_count in the right place. --- sys/powerpc/aim/mmu_oea.c | 2 +- sys/powerpc/powerpc/mmu_oea.c | 2 +- sys/powerpc/powerpc/pmap.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c index c12b0a7767ac..8f2a91685145 100644 --- a/sys/powerpc/aim/mmu_oea.c +++ b/sys/powerpc/aim/mmu_oea.c @@ -1871,9 +1871,9 @@ pmap_pvo_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) *flags = UMA_SLAB_PRIV; m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM); - pmap_pvo_count++; if (m == NULL) return (NULL); + pmap_pvo_count++; return ((void *)VM_PAGE_TO_PHYS(m)); } diff --git a/sys/powerpc/powerpc/mmu_oea.c b/sys/powerpc/powerpc/mmu_oea.c index c12b0a7767ac..8f2a91685145 100644 --- a/sys/powerpc/powerpc/mmu_oea.c +++ b/sys/powerpc/powerpc/mmu_oea.c @@ -1871,9 +1871,9 @@ pmap_pvo_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) *flags = UMA_SLAB_PRIV; m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM); - pmap_pvo_count++; if (m == NULL) return (NULL); + pmap_pvo_count++; return ((void *)VM_PAGE_TO_PHYS(m)); } diff --git a/sys/powerpc/powerpc/pmap.c b/sys/powerpc/powerpc/pmap.c index c12b0a7767ac..8f2a91685145 100644 --- a/sys/powerpc/powerpc/pmap.c +++ b/sys/powerpc/powerpc/pmap.c @@ -1871,9 +1871,9 @@ pmap_pvo_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) *flags = UMA_SLAB_PRIV; m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM); - pmap_pvo_count++; if (m == NULL) return (NULL); + pmap_pvo_count++; return ((void *)VM_PAGE_TO_PHYS(m)); }