mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Increment pmap_pvo_count in the right place.
This commit is contained in:
parent
14e10f9952
commit
21d7ec8915
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92757
@ -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