summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-11-30 17:39:00 +0000
committerkib <kib@FreeBSD.org>2011-11-30 17:39:00 +0000
commitd326d5565d29f6c883c23618b8168e3a18585cfe (patch)
treeb86fd6fc85cd5c533be5bedacc703e8798e2fdde /sys/vm
parentb1d2a50084631bf8afff5cccc143f8b4de8d8a85 (diff)
downloadFreeBSD-src-d326d5565d29f6c883c23618b8168e3a18585cfe.zip
FreeBSD-src-d326d5565d29f6c883c23618b8168e3a18585cfe.tar.gz
Rename vm_page_set_valid() to vm_page_set_valid_range().
The vm_page_set_valid() is the most reasonable name for the m->valid accessor. Reviewed by: attilio, alc
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c6
-rw-r--r--sys/vm/vm_page.h2
-rw-r--r--sys/vm/vnode_pager.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index fcf25a3..405bf25 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -2538,7 +2538,7 @@ vm_page_bits(int base, int size)
}
/*
- * vm_page_set_valid:
+ * vm_page_set_valid_range:
*
* Sets portions of a page valid. The arguments are expected
* to be DEV_BSIZE aligned but if they aren't the bitmap is inclusive
@@ -2548,7 +2548,7 @@ vm_page_bits(int base, int size)
* (base + size) must be less then or equal to PAGE_SIZE.
*/
void
-vm_page_set_valid(vm_page_t m, int base, int size)
+vm_page_set_valid_range(vm_page_t m, int base, int size)
{
int endoff, frag;
@@ -2581,7 +2581,7 @@ vm_page_set_valid(vm_page_t m, int base, int size)
* is already dirty.
*/
KASSERT((~m->valid & vm_page_bits(base, size) & m->dirty) == 0,
- ("vm_page_set_valid: page %p is dirty", m));
+ ("vm_page_set_valid_range: page %p is dirty", m));
/*
* Set valid bits inclusive of any overlap.
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 15af489..85df6fb 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -396,7 +396,7 @@ void vm_page_reference(vm_page_t m);
void vm_page_remove (vm_page_t);
void vm_page_rename (vm_page_t, vm_object_t, vm_pindex_t);
void vm_page_requeue(vm_page_t m);
-void vm_page_set_valid(vm_page_t m, int base, int size);
+void vm_page_set_valid_range(vm_page_t m, int base, int size);
void vm_page_sleep(vm_page_t m, const char *msg);
vm_page_t vm_page_splay(vm_pindex_t, vm_page_t);
vm_offset_t vm_page_startup(vm_offset_t vaddr);
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index cd2658d..929fa4f 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -413,7 +413,7 @@ vnode_pager_setsize(vp, nsize)
* have been zeroed. Some of these valid bits may
* have already been set.
*/
- vm_page_set_valid(m, base, size);
+ vm_page_set_valid_range(m, base, size);
/*
* Round "base" to the next block boundary so that the
@@ -964,7 +964,7 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage)
* we just try to clear the piece that we couldn't
* read.
*/
- vm_page_set_valid(mt, 0,
+ vm_page_set_valid_range(mt, 0,
object->un_pager.vnp.vnp_size - tfoff);
KASSERT((mt->dirty & vm_page_bits(0,
object->un_pager.vnp.vnp_size - tfoff)) == 0,
OpenPOWER on IntegriCloud