summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-10-25 18:33:04 +0000
committeralc <alc@FreeBSD.org>2003-10-25 18:33:04 +0000
commit92470025a704acf46e6b684b523185a7ef6ef70e (patch)
treed5d5a7df5cdaf1ed2f63bd1d500feeb5dbb2c850 /sys/vm/vm_page.h
parentb43632b1530ca6326d49c59f7aa08f97feeea2d2 (diff)
downloadFreeBSD-src-92470025a704acf46e6b684b523185a7ef6ef70e.zip
FreeBSD-src-92470025a704acf46e6b684b523185a7ef6ef70e.tar.gz
- Align a comment within struct vm_page.
- Annotate the vm_page's valid field as synchronized by the containing vm object's lock.
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index d488bf0..6a2f5e9 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -116,7 +116,7 @@ struct vm_page {
vm_object_t object; /* which object am I in (O,P)*/
vm_pindex_t pindex; /* offset into object (O,P) */
- vm_paddr_t phys_addr; /* physical address of page */
+ vm_paddr_t phys_addr; /* physical address of page */
struct md_page md; /* machine dependant stuff */
u_short queue; /* page queue index */
u_short flags, /* see below */
@@ -128,16 +128,16 @@ struct vm_page {
/* NOTE that these must support one bit per DEV_BSIZE in a page!!! */
/* so, on normal X86 kernels, they must be at least 8 bits wide */
#if PAGE_SIZE == 4096
- u_char valid; /* map of valid DEV_BSIZE chunks */
+ u_char valid; /* map of valid DEV_BSIZE chunks (O) */
u_char dirty; /* map of dirty DEV_BSIZE chunks */
#elif PAGE_SIZE == 8192
- u_short valid; /* map of valid DEV_BSIZE chunks */
+ u_short valid; /* map of valid DEV_BSIZE chunks (O) */
u_short dirty; /* map of dirty DEV_BSIZE chunks */
#elif PAGE_SIZE == 16384
- u_int valid; /* map of valid DEV_BSIZE chunks */
+ u_int valid; /* map of valid DEV_BSIZE chunks (O) */
u_int dirty; /* map of dirty DEV_BSIZE chunks */
#elif PAGE_SIZE == 32768
- u_long valid; /* map of valid DEV_BSIZE chunks */
+ 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 */
OpenPOWER on IntegriCloud