diff options
author | benno <benno@FreeBSD.org> | 2002-03-20 05:25:33 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-03-20 05:25:33 +0000 |
commit | 95b805ab3ba49af1a775609fd71d8bd8617ca30c (patch) | |
tree | 13a4b94e3eccdacf220fa513a139784568834978 /sys/powerpc | |
parent | eddc6122c99ccaa9c147f78f44588a5757d3f046 (diff) | |
download | FreeBSD-src-95b805ab3ba49af1a775609fd71d8bd8617ca30c.zip FreeBSD-src-95b805ab3ba49af1a775609fd71d8bd8617ca30c.tar.gz |
Increment pmap_pvo_count in the right place.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/mmu_oea.c | 2 | ||||
-rw-r--r-- | sys/powerpc/powerpc/mmu_oea.c | 2 | ||||
-rw-r--r-- | 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 c12b0a7..8f2a916 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 c12b0a7..8f2a916 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 c12b0a7..8f2a916 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)); } |