diff options
author | kib <kib@FreeBSD.org> | 2011-09-28 14:51:28 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-09-28 14:51:28 +0000 |
commit | 3383aff65a84084093f4575d6098fac891dcbab9 (patch) | |
tree | 8fa892d27e41ae7ad0828dbd59cc8db7ff9c0f0c /sys/vm/vm_page.h | |
parent | a13ffdabccc99b57bdb73bc04662a95e6f93df8e (diff) | |
download | FreeBSD-src-3383aff65a84084093f4575d6098fac891dcbab9.zip FreeBSD-src-3383aff65a84084093f4575d6098fac891dcbab9.tar.gz |
Use the explicitly-sized types for the dirty and valid masks.
Requested by: attilio
Reviewed by: alc
MFC after: 2 weeks
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 5431d79..f7f3aed 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -139,17 +139,17 @@ struct vm_page { /* so, on normal X86 kernels, they must be at least 8 bits wide */ /* In reality, support for 32KB pages is not fully implemented. */ #if PAGE_SIZE == 4096 - u_char valid; /* map of valid DEV_BSIZE chunks (O) */ - u_char dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint8_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint8_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #elif PAGE_SIZE == 8192 - u_short valid; /* map of valid DEV_BSIZE chunks (O) */ - u_short dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint16_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint16_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #elif PAGE_SIZE == 16384 - u_int valid; /* map of valid DEV_BSIZE chunks (O) */ - u_int dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint32_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint32_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #elif PAGE_SIZE == 32768 - u_long valid; /* map of valid DEV_BSIZE chunks (O) */ - u_long dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint64_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint64_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #endif }; |