diff options
author | marcel <marcel@FreeBSD.org> | 2004-08-22 20:52:23 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-08-22 20:52:23 +0000 |
commit | 3bbdf52d20612fb570792a0fff295006d777d891 (patch) | |
tree | e24c5c060c10cfeeb0dedfcdd8e7ba565b4867ee /sys/vm/vm_page.h | |
parent | 763aa6bdef5df1852562a03139d652132c38bdec (diff) | |
download | FreeBSD-src-3bbdf52d20612fb570792a0fff295006d777d891.zip FreeBSD-src-3bbdf52d20612fb570792a0fff295006d777d891.tar.gz |
Move the cow field between wire_count and hold_count. This is the
position that is 64-bit aligned and makes sure that the valid and
dirty fields are also 64-bit aligned. This means that if PAGE_SIZE
is 32K, the size of the vm_page structure is only increased by 8
bytes instead of 16 bytes. More importantly, the vm_page structure
is either 120 or 128 bytes on ia64. These are "interesting" sizes.
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 633b7f9..a7f84e8 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -118,6 +118,7 @@ struct vm_page { u_short flags, /* see below */ pc; /* page color */ u_short wire_count; /* wired down maps refs (P) */ + u_int cow; /* page cow mapping count */ short hold_count; /* page hold count */ u_char act_count; /* page usage count */ u_char busy; /* page busy count */ @@ -136,7 +137,6 @@ struct vm_page { u_long valid; /* map of valid DEV_BSIZE chunks (O) */ u_long dirty; /* map of dirty DEV_BSIZE chunks */ #endif - u_int cow; /* page cow mapping count */ }; /* Make sure that u_long is at least 64 bits when PAGE_SIZE is 32K. */ |