Page MenuHomeFreeBSD

D10579.id27960.diff
No OneTemporary

D10579.id27960.diff

Index: share/man/man9/VOP_GETPAGES.9
===================================================================
--- share/man/man9/VOP_GETPAGES.9
+++ share/man/man9/VOP_GETPAGES.9
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 16, 2015
+.Dd May 3, 2017
.Dt VOP_GETPAGES 9
.Os
.Sh NAME
@@ -43,7 +43,7 @@
.Ft int
.Fn VOP_GETPAGES "struct vnode *vp" "vm_page_t *ma" "int count" "int *rbehind" "int *rahead"
.Ft int
-.Fn VOP_PUTPAGES "struct vnode *vp" "vm_page_t *ma" "int count" "int sync" "int *rtvals"
+.Fn VOP_PUTPAGES "struct vnode *vp" "vm_page_t *ma" "int bytecount" "int sync" "int *rtvals"
.Sh DESCRIPTION
The
.Fn VOP_GETPAGES
@@ -70,7 +70,9 @@
Pointer to the first element of an array of pages representing a
contiguous region of the file to be read or written.
.It Fa count
-The number of bytes that should be read into the pages of the array.
+The number of pages that should be read into the pages of the array.
+.It Fa bytecount
+The number of bytes that should be written from the pages of the array.
.It Fa sync
.Dv VM_PAGER_PUT_SYNC
if the write should be synchronous.
@@ -135,17 +137,12 @@
.Fn VOP_GETPAGES
must set the valid bits appropriately.
.Fn VOP_GETPAGES
-must keep
-.Fa reqpage
-busy.
-It must unbusy all other successfully handled pages and put them
-on appropriate page queue(s).
-For example,
+must keep all pages in the
+.Fa ma
+array busy.
.Fn VOP_GETPAGES
may either activate a page (if its wanted bit is set)
-or deactivate it (otherwise), and finally call
-.Xr vm_page_xunbusy 9
-to arouse any threads currently waiting for the page to be faulted in.
+or deactivate it (otherwise).
.Sh RETURN VALUES
If it successfully reads
.Fa ma[reqpage] ,

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 23, 3:09 PM (46 m, 38 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37147827
Default Alt Text
D10579.id27960.diff (1 KB)

Event Timeline