Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm No need to pass UVM_FLAG_COLORMATCH to uvm_pagealloc()
details: https://anonhg.NetBSD.org/src/rev/f8eabe7ee731
branches: trunk
changeset: 765193:f8eabe7ee731
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat May 21 11:49:34 2011 +0000
description:
No need to pass UVM_FLAG_COLORMATCH to uvm_pagealloc()
if no valid vaddr is specified.
diffstat:
sys/uvm/uvm_fault.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f7a554cb1dd2 -r f8eabe7ee731 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Sat May 21 11:38:52 2011 +0000
+++ b/sys/uvm/uvm_fault.c Sat May 21 11:49:34 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.184 2011/04/23 18:14:12 rmind Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.185 2011/05/21 11:49:34 tsutsui Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.184 2011/04/23 18:14:12 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.185 2011/05/21 11:49:34 tsutsui Exp $");
#include "opt_uvmhist.h"
@@ -354,7 +354,7 @@
pg = uvm_pagealloc(NULL,
ufi != NULL ? ufi->orig_rvaddr : 0,
- anon, UVM_FLAG_COLORMATCH);
+ anon, ufi != NULL ? UVM_FLAG_COLORMATCH : 0);
if (pg == NULL) { /* out of RAM. */
uvmfault_unlockall(ufi, amap, NULL, anon);
uvmexp.fltnoram++;
Home |
Main Index |
Thread Index |
Old Index