Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm remove unused variables for UVM_PAGE_TRKOWN.
details: https://anonhg.NetBSD.org/src/rev/fda0a6559312
branches: trunk
changeset: 328856:fda0a6559312
user: chs <chs%NetBSD.org@localhost>
date: Mon Apr 21 16:33:48 2014 +0000
description:
remove unused variables for UVM_PAGE_TRKOWN.
diffstat:
sys/uvm/uvm_page.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diffs (46 lines):
diff -r 5d7dab363798 -r fda0a6559312 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Mon Apr 21 16:33:21 2014 +0000
+++ b/sys/uvm/uvm_page.c Mon Apr 21 16:33:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.183 2013/10/25 20:26:22 martin Exp $ */
+/* $NetBSD: uvm_page.c,v 1.184 2014/04/21 16:33:48 chs Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.183 2013/10/25 20:26:22 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.184 2014/04/21 16:33:48 chs Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -1684,15 +1684,10 @@
void
uvm_page_own(struct vm_page *pg, const char *tag)
{
- struct uvm_object *uobj;
- struct vm_anon *anon;
KASSERT((pg->flags & (PG_PAGEOUT|PG_RELEASED)) == 0);
-
- uobj = pg->uobject;
- anon = pg->uanon;
+ KASSERT((pg->flags & PG_WANTED) == 0);
KASSERT(uvm_page_locked_p(pg));
- KASSERT((pg->flags & PG_WANTED) == 0);
/* gain ownership? */
if (tag) {
@@ -1703,8 +1698,8 @@
pg->owner, pg->owner_tag);
panic("uvm_page_own");
}
- pg->owner = (curproc) ? curproc->p_pid : (pid_t) -1;
- pg->lowner = (curlwp) ? curlwp->l_lid : (lwpid_t) -1;
+ pg->owner = curproc->p_pid;
+ pg->lowner = curlwp->l_lid;
pg->owner_tag = tag;
return;
}
Home |
Main Index |
Thread Index |
Old Index