Increment pmap_pvo_count in the right place.
This commit is contained in:
parent
eddc6122c9
commit
95b805ab3b
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user