Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/uebayasi-xip]: src/sys/uvm uvm_pglistalloc(9) returns 0 on success, not ...
details: https://anonhg.NetBSD.org/src/rev/f0c7ef741972
branches: uebayasi-xip
changeset: 751893:f0c7ef741972
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sun Nov 21 11:57:15 2010 +0000
description:
uvm_pglistalloc(9) returns 0 on success, not # of pages.
diffstat:
sys/uvm/uvm_page.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 9410d7822d37 -r f0c7ef741972 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Sun Nov 21 07:41:49 2010 +0000
+++ b/sys/uvm/uvm_page.c Sun Nov 21 11:57:15 2010 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index