mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
Correct an error in r230623. When both VM_ALLOC_NODUMP and VM_ALLOC_ZERO
were specified to vm_page_alloc(), PG_NODUMP wasn't being set on the allocated page when it happened to be pre-zeroed. MFC after: 5 days
This commit is contained in:
parent
95122b9404
commit
0d69690e8f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243366
@ -1481,13 +1481,13 @@ vm_page_alloc(vm_object_t object, vm_pindex_t pindex, int req)
|
||||
* must be cleared before the free page queues lock is released.
|
||||
*/
|
||||
flags = 0;
|
||||
if (req & VM_ALLOC_NODUMP)
|
||||
flags |= PG_NODUMP;
|
||||
if (m->flags & PG_ZERO) {
|
||||
vm_page_zero_count--;
|
||||
if (req & VM_ALLOC_ZERO)
|
||||
flags = PG_ZERO;
|
||||
}
|
||||
if (req & VM_ALLOC_NODUMP)
|
||||
flags |= PG_NODUMP;
|
||||
m->flags = flags;
|
||||
mtx_unlock(&vm_page_queue_free_mtx);
|
||||
m->aflags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user