summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc_debug.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2007-04-04 17:44:45 +0000
committerart <art@openbsd.org>2007-04-04 17:44:45 +0000
commit9662fca43f6aa1df3836c04a122dccb84e9cee8e (patch)
tree08550ed936108f30282a26930ce09de7c4dd1bd4 /sys/kern/kern_malloc_debug.c
parentImplement clock_gettime(CLOCK_PROF) since it's so simple. (diff)
downloadwireguard-openbsd-9662fca43f6aa1df3836c04a122dccb84e9cee8e.tar.xz
wireguard-openbsd-9662fca43f6aa1df3836c04a122dccb84e9cee8e.zip
Mechanically rename the "flags" and "version" fields in struct vm_page
to "pg_flags" and "pg_version", so that they are a bit easier to work with. Whoever uses generic names like this for a popular struct obviously doesn't read much code. Most architectures compile and there are no functionality changes. deraadt@ ok ("if something fails to compile, we fix that by hand")
Diffstat (limited to 'sys/kern/kern_malloc_debug.c')
-rw-r--r--sys/kern/kern_malloc_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c
index dcd39cfeb49..f6ec3efd608 100644
--- a/sys/kern/kern_malloc_debug.c
+++ b/sys/kern/kern_malloc_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc_debug.c,v 1.23 2004/06/20 01:04:28 art Exp $ */
+/* $OpenBSD: kern_malloc_debug.c,v 1.24 2007/04/04 17:44:45 art Exp $ */
/*
* Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org>
@@ -252,7 +252,7 @@ debug_malloc_allocate_free(int wait)
simple_lock(&uvmexp.kmem_object->vmobjlock);
pg = uvm_pagealloc(uvmexp.kmem_object, offset, NULL, 0);
if (pg) {
- pg->flags &= ~PG_BUSY; /* new page */
+ pg->pg_flags &= ~PG_BUSY; /* new page */
UVM_PAGE_OWN(pg, NULL);
}
simple_unlock(&uvmexp.kmem_object->vmobjlock);