diff options
author | Alan Cox <alc@FreeBSD.org> | 2006-10-22 04:28:14 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2006-10-22 04:28:14 +0000 |
commit | 9af80719db341cf3e23d76c62553d77b6ad03568 (patch) | |
tree | 4eda40daa4f02d9dd3c07a7a5c1c6363ac1f7f37 /sys/vm/vm_page.h | |
parent | 43200cd3ed7016ca7da8d9072f0f3d4481080e59 (diff) | |
download | src-9af80719db341cf3e23d76c62553d77b6ad03568.tar.gz src-9af80719db341cf3e23d76c62553d77b6ad03568.zip |
Replace PG_BUSY with VPO_BUSY. In other words, changes to the page's
busy flag, i.e., VPO_BUSY, are now synchronized by the per-vm object
lock instead of the global page queues lock.
Notes
Notes:
svn path=/head/; revision=163604
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 0deacb674436..91e11eb035cf 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -142,6 +142,7 @@ struct vm_page { * Access to these page flags is synchronized by the lock on the object * containing the page (O). */ +#define VPO_BUSY 0x0001 /* page is in transit */ #define VPO_WANTED 0x0002 /* someone is waiting for page */ #define VPO_SWAPINPROG 0x0200 /* swap I/O in progress on page */ #define VPO_NOSYNC 0x0400 /* do not collect for syncer */ @@ -220,7 +221,6 @@ extern struct pq_coloring page_queue_coloring; * pte mappings, nor can they be removed from their objects via * the object, and such pages are also not on any PQ queue. */ -#define PG_BUSY 0x0001 /* page is in transit (O) */ #define PG_WINATCFLS 0x0004 /* flush dirty page on inactive q */ #define PG_FICTITIOUS 0x0008 /* physical page doesn't exist (O) */ #define PG_WRITEABLE 0x0010 /* page is mapped writeable */ @@ -362,7 +362,7 @@ void vm_page_cowclear (vm_page_t); /* * vm_page_sleep_if_busy: * - * Sleep and release the page queues lock if PG_BUSY is set or, + * Sleep and release the page queues lock if VPO_BUSY is set or, * if also_m_busy is TRUE, busy is non-zero. Returns TRUE if the * thread slept and the page queues lock was released. * Otherwise, retains the page queues lock and returns FALSE. @@ -373,7 +373,7 @@ static __inline int vm_page_sleep_if_busy(vm_page_t m, int also_m_busy, const char *msg) { - if ((m->flags & PG_BUSY) || (also_m_busy && m->busy)) { + if ((m->oflags & VPO_BUSY) || (also_m_busy && m->busy)) { vm_page_sleep(m, msg); return (TRUE); } |