Module Name: src Committed By: uebayasi Date: Sun Nov 21 11:57:16 UTC 2010
Modified Files: src/sys/uvm [uebayasi-xip]: uvm_page.c Log Message: uvm_pglistalloc(9) returns 0 on success, not # of pages. To generate a diff of this commit: cvs rdiff -u -r1.153.2.66 -r1.153.2.67 src/sys/uvm/uvm_page.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_page.c diff -u src/sys/uvm/uvm_page.c:1.153.2.66 src/sys/uvm/uvm_page.c:1.153.2.67 --- src/sys/uvm/uvm_page.c:1.153.2.66 Sat Nov 20 07:52:30 2010 +++ src/sys/uvm/uvm_page.c Sun Nov 21 11:57:15 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page.c,v 1.153.2.66 2010/11/20 07:52:30 uebayasi Exp $ */ +/* $NetBSD: uvm_page.c,v 1.153.2.67 2010/11/21 11:57:15 uebayasi Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -97,7 +97,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.66 2010/11/20 07:52:30 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.67 2010/11/21 11:57:15 uebayasi Exp $"); #include "opt_ddb.h" #include "opt_uvmhist.h" @@ -2254,11 +2254,11 @@ { struct pglist mlist; struct vm_page *pg; - int n; + int error; - n = uvm_pglistalloc(PAGE_SIZE, 0, -1, PAGE_SIZE, PAGE_SIZE, + error = uvm_pglistalloc(PAGE_SIZE, 0, -1, PAGE_SIZE, PAGE_SIZE, &mlist, 1, 1); - KASSERT(n == 1); + KASSERT(error == 0); pg = TAILQ_FIRST(&mlist); KASSERT(pg != NULL);