1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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.
This commit is contained in:
Marcel Moolenaar 2004-08-22 20:52:23 +00:00
parent 2b004a226d
commit 2bbb534b56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134184

View File

@ -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. */