diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-04-04 17:44:46 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-04-04 17:44:46 +0000 |
commit | 1e4c5717dc31673eddb41e5fe6349f210997597d (patch) | |
tree | a2ba686f67d53130c3004e616dd895908890dcdd /sys/arch/sparc64 | |
parent | 6ae935fc92c15c37369f2eb54d2b618e30337f7c (diff) |
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/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/pmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index c24a6ffe362..6b44839be2f 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.34 2007/01/12 19:19:34 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.35 2007/04/04 17:44:45 art Exp $ */ /* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */ #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ /* @@ -3679,7 +3679,7 @@ vm_page_alloc1() struct vm_page *pg = uvm_pagealloc(NULL, 0, NULL, UVM_PGA_USERESERVE); if (pg) { pg->wire_count = 1; /* no mappings yet */ - pg->flags &= ~PG_BUSY; /* never busy */ + pg->pg_flags &= ~PG_BUSY; /* never busy */ } return pg; } @@ -3696,13 +3696,13 @@ void vm_page_free1(mem) struct vm_page *mem; { - if (mem->flags != (PG_CLEAN|PG_FAKE)) { + if (mem->pg_flags != (PG_CLEAN|PG_FAKE)) { printf("Freeing invalid page %p\n", mem); printf("pa = %llx\n", (unsigned long long)VM_PAGE_TO_PHYS(mem)); Debugger(); return; } - mem->flags |= PG_BUSY; + mem->pg_flags |= PG_BUSY; mem->wire_count = 0; uvm_pagefree(mem); } |