Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm mincore: don't treat an aobj as a device mapping.
details: https://anonhg.NetBSD.org/src/rev/725a99db9524
branches: trunk
changeset: 555813:725a99db9524
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Nov 29 19:06:48 2003 +0000
description:
mincore: don't treat an aobj as a device mapping.
diffstat:
sys/uvm/uvm_mmap.c | 6 +++---
sys/uvm/uvm_object.h | 5 ++++-
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r 165cf270e0ad -r 725a99db9524 sys/uvm/uvm_mmap.c
--- a/sys/uvm/uvm_mmap.c Sat Nov 29 16:17:31 2003 +0000
+++ b/sys/uvm/uvm_mmap.c Sat Nov 29 19:06:48 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_mmap.c,v 1.78 2003/10/07 00:17:09 thorpej Exp $ */
+/* $NetBSD: uvm_mmap.c,v 1.79 2003/11/29 19:06:48 yamt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.78 2003/10/07 00:17:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.79 2003/11/29 19:06:48 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -200,7 +200,7 @@
if (UVM_ET_ISOBJ(entry)) {
KASSERT(!UVM_OBJ_IS_KERN_OBJECT(entry->object.uvm_obj));
- if (!UVM_OBJ_IS_VNODE(entry->object.uvm_obj)) {
+ if (UVM_OBJ_IS_DEVICE(entry->object.uvm_obj)) {
for (/* nothing */; start < lim;
start += PAGE_SIZE, vec++)
subyte(vec, 1);
diff -r 165cf270e0ad -r 725a99db9524 sys/uvm/uvm_object.h
--- a/sys/uvm/uvm_object.h Sat Nov 29 16:17:31 2003 +0000
+++ b/sys/uvm/uvm_object.h Sat Nov 29 19:06:48 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_object.h,v 1.16 2002/06/20 15:05:29 chs Exp $ */
+/* $NetBSD: uvm_object.h,v 1.17 2003/11/29 19:06:48 yamt Exp $ */
/*
*
@@ -80,6 +80,9 @@
#define UVM_OBJ_IS_VNODE(uobj) \
((uobj)->pgops == &uvm_vnodeops)
+#define UVM_OBJ_IS_DEVICE(uobj) \
+ ((uobj)->pgops == &uvm_deviceops)
+
#define UVM_OBJ_IS_VTEXT(uobj) \
((uobj)->pgops == &uvm_vnodeops && \
((struct vnode *)uobj)->v_flag & VEXECMAP)
Home |
Main Index |
Thread Index |
Old Index