PG_BUSY -> VPO_BUSY, PG_WANTED -> VPO_WANTED in manual pages and comments
Reviewed by: alc MFC after: 4 days
This commit is contained in:
parent
7e54c6db1f
commit
55144670c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214095
@ -52,9 +52,9 @@ function lowers the busy count on the page by one, if the resulting busy
|
|||||||
count is zero, a
|
count is zero, a
|
||||||
.Xr wakeup 9
|
.Xr wakeup 9
|
||||||
will be issued if the page has been marked
|
will be issued if the page has been marked
|
||||||
.Dv PG_WANTED .
|
.Dv VPO_WANTED .
|
||||||
A page is typically marked
|
A page is typically marked
|
||||||
.Dv PG_WANTED
|
.Dv VPO_WANTED
|
||||||
by a thread to register its interest in
|
by a thread to register its interest in
|
||||||
the page to either complete I/O or becoming available for general use.
|
the page to either complete I/O or becoming available for general use.
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
The
|
The
|
||||||
.Fn vm_page_sleep_busy
|
.Fn vm_page_sleep_busy
|
||||||
function waits until the
|
function waits until the
|
||||||
.Dv PG_BUSY
|
.Dv VPO_BUSY
|
||||||
flag is cleared.
|
flag is cleared.
|
||||||
If
|
If
|
||||||
.Fa also_m_busy
|
.Fa also_m_busy
|
||||||
|
@ -50,20 +50,20 @@ of a page.
|
|||||||
.Pp
|
.Pp
|
||||||
.Fn vm_page_busy
|
.Fn vm_page_busy
|
||||||
sets the
|
sets the
|
||||||
.Dv PG_BUSY
|
.Dv VPO_BUSY
|
||||||
flag in the page.
|
flag in the page.
|
||||||
.Pp
|
.Pp
|
||||||
.Fn vm_page_flash
|
.Fn vm_page_flash
|
||||||
checks to see if there is anybody waiting on the page
|
checks to see if there is anybody waiting on the page
|
||||||
.Dv ( PG_WANTED
|
.Dv ( VPO_WANTED
|
||||||
will be set), and if so, clears the
|
will be set), and if so, clears the
|
||||||
.Dv PG_WANTED
|
.Dv VPO_WANTED
|
||||||
flag and notifies whoever is waiting via
|
flag and notifies whoever is waiting via
|
||||||
.Fn wakeup .
|
.Fn wakeup .
|
||||||
.Pp
|
.Pp
|
||||||
.Fn vm_page_wakeup
|
.Fn vm_page_wakeup
|
||||||
clears the
|
clears the
|
||||||
.Dv PG_BUSY
|
.Dv VPO_BUSY
|
||||||
flag on the page, and calls
|
flag on the page, and calls
|
||||||
.Fn vm_page_flash
|
.Fn vm_page_flash
|
||||||
in case somebody has been waiting for it.
|
in case somebody has been waiting for it.
|
||||||
|
@ -1460,8 +1460,8 @@ swap_pager_putpages(vm_object_t object, vm_page_t *m, int count,
|
|||||||
* Completion routine for asynchronous reads and writes from/to swap.
|
* Completion routine for asynchronous reads and writes from/to swap.
|
||||||
* Also called manually by synchronous code to finish up a bp.
|
* Also called manually by synchronous code to finish up a bp.
|
||||||
*
|
*
|
||||||
* For READ operations, the pages are PG_BUSY'd. For WRITE operations,
|
* For READ operations, the pages are VPO_BUSY'd. For WRITE operations,
|
||||||
* the pages are vm_page_t->busy'd. For READ operations, we PG_BUSY
|
* the pages are vm_page_t->busy'd. For READ operations, we VPO_BUSY
|
||||||
* unbusy all pages except the 'main' request page. For WRITE
|
* unbusy all pages except the 'main' request page. For WRITE
|
||||||
* operations, we vm_page_t->busy'd unbusy all pages ( we can do this
|
* operations, we vm_page_t->busy'd unbusy all pages ( we can do this
|
||||||
* because we marked them all VM_PAGER_PEND on return from putpages ).
|
* because we marked them all VM_PAGER_PEND on return from putpages ).
|
||||||
|
Loading…
Reference in New Issue
Block a user