Use __func__ in KASSERTs, since the code is about to be moved to other place.
Sponsored by: Nginx, Inc.
This commit is contained in:
parent
c73b720d6a
commit
20a46e6241
@ -981,11 +981,9 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int bytecount,
|
|||||||
*/
|
*/
|
||||||
mt->valid = VM_PAGE_BITS_ALL;
|
mt->valid = VM_PAGE_BITS_ALL;
|
||||||
KASSERT(mt->dirty == 0,
|
KASSERT(mt->dirty == 0,
|
||||||
("vnode_pager_generic_getpages: page %p is dirty",
|
("%s: page %p is dirty", __func__, mt));
|
||||||
mt));
|
|
||||||
KASSERT(!pmap_page_is_mapped(mt),
|
KASSERT(!pmap_page_is_mapped(mt),
|
||||||
("vnode_pager_generic_getpages: page %p is mapped",
|
("%s: page %p is mapped", __func__, mt));
|
||||||
mt));
|
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* Read did not fill up entire page.
|
* Read did not fill up entire page.
|
||||||
@ -998,8 +996,7 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int bytecount,
|
|||||||
object->un_pager.vnp.vnp_size - tfoff);
|
object->un_pager.vnp.vnp_size - tfoff);
|
||||||
KASSERT((mt->dirty & vm_page_bits(0,
|
KASSERT((mt->dirty & vm_page_bits(0,
|
||||||
object->un_pager.vnp.vnp_size - tfoff)) == 0,
|
object->un_pager.vnp.vnp_size - tfoff)) == 0,
|
||||||
("vnode_pager_generic_getpages: page %p is dirty",
|
("%s: page %p is dirty", __func__, mt));
|
||||||
mt));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i != reqpage)
|
if (i != reqpage)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user