Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Allow VM_NFREELIST in uao_set_pgfl, meaning any free...
details: https://anonhg.NetBSD.org/src/rev/10b1ee046264
branches: trunk
changeset: 796235:10b1ee046264
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun May 25 18:55:11 2014 +0000
description:
Allow VM_NFREELIST in uao_set_pgfl, meaning any freelist is OK.
diffstat:
sys/uvm/uvm_aobj.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 3ee1483c1214 -r 10b1ee046264 sys/uvm/uvm_aobj.c
--- a/sys/uvm/uvm_aobj.c Sun May 25 17:43:47 2014 +0000
+++ b/sys/uvm/uvm_aobj.c Sun May 25 18:55:11 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_aobj.c,v 1.121 2014/05/22 14:01:46 riastradh Exp $ */
+/* $NetBSD: uvm_aobj.c,v 1.122 2014/05/25 18:55:11 riastradh Exp $ */
/*
* Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.121 2014/05/22 14:01:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.122 2014/05/25 18:55:11 riastradh Exp $");
#include "opt_uvmhist.h"
@@ -502,6 +502,7 @@
* uao_set_pgfl: allocate pages only from the specified freelist.
*
* => must be called before any pages are allocated for the object.
+ * => reset by setting it to VM_NFREELIST, meaning any freelist.
*/
void
@@ -510,7 +511,8 @@
struct uvm_aobj *aobj = (struct uvm_aobj *)uobj;
KASSERTMSG((0 <= freelist), "invalid freelist %d", freelist);
- KASSERTMSG((freelist < VM_NFREELIST), "invalid freelist %d", freelist);
+ KASSERTMSG((freelist <= VM_NFREELIST), "invalid freelist %d",
+ freelist);
aobj->u_freelist = freelist;
}
Home |
Main Index |
Thread Index |
Old Index