Increment pmap_pvo_count in the right place.
This commit is contained in:
parent
14e10f9952
commit
21d7ec8915
@ -1871,9 +1871,9 @@ pmap_pvo_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
|
|||||||
|
|
||||||
*flags = UMA_SLAB_PRIV;
|
*flags = UMA_SLAB_PRIV;
|
||||||
m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM);
|
m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM);
|
||||||
pmap_pvo_count++;
|
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
pmap_pvo_count++;
|
||||||
return ((void *)VM_PAGE_TO_PHYS(m));
|
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;
|
*flags = UMA_SLAB_PRIV;
|
||||||
m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM);
|
m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM);
|
||||||
pmap_pvo_count++;
|
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
pmap_pvo_count++;
|
||||||
return ((void *)VM_PAGE_TO_PHYS(m));
|
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;
|
*flags = UMA_SLAB_PRIV;
|
||||||
m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM);
|
m = vm_page_alloc(pmap_pvo_obj, pmap_pvo_count, VM_ALLOC_SYSTEM);
|
||||||
pmap_pvo_count++;
|
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
pmap_pvo_count++;
|
||||||
return ((void *)VM_PAGE_TO_PHYS(m));
|
return ((void *)VM_PAGE_TO_PHYS(m));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user