From da1ab8a4a0b21d780aeb9212055c163ccecb6ea3 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 17 Jul 2012 02:36:59 +0000 Subject: [PATCH] Correct vm_page_alloc_contig()'s implementation of VM_ALLOC_NODUMP. --- sys/vm/vm_page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 496fce9fcf7a..8e76727dba38 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1684,7 +1684,7 @@ vm_page_alloc_contig(vm_object_t object, vm_pindex_t pindex, int req, } for (m = m_ret; m < &m_ret[npages]; m++) { m->aflags = 0; - m->flags &= flags; + m->flags = (m->flags | PG_NODUMP) & flags; if ((req & VM_ALLOC_WIRED) != 0) m->wire_count = 1; /* Unmanaged pages don't use "act_count". */