svn commit: r274718 - head/sys/vm
Gleb Smirnoff
glebius at FreeBSD.org
Wed Nov 19 16:29:40 UTC 2014
Author: glebius
Date: Wed Nov 19 16:29:39 2014
New Revision: 274718
URL: https://svnweb.freebsd.org/changeset/base/274718
Log:
Use __func__ in KASSERTs, since the code is about to be moved to other place.
Sponsored by: Nginx, Inc.
Modified:
head/sys/vm/vnode_pager.c
Modified: head/sys/vm/vnode_pager.c
==============================================================================
--- head/sys/vm/vnode_pager.c Wed Nov 19 16:23:57 2014 (r274717)
+++ head/sys/vm/vnode_pager.c Wed Nov 19 16:29:39 2014 (r274718)
@@ -981,11 +981,9 @@ vnode_pager_generic_getpages(struct vnod
*/
mt->valid = VM_PAGE_BITS_ALL;
KASSERT(mt->dirty == 0,
- ("vnode_pager_generic_getpages: page %p is dirty",
- mt));
+ ("%s: page %p is dirty", __func__, mt));
KASSERT(!pmap_page_is_mapped(mt),
- ("vnode_pager_generic_getpages: page %p is mapped",
- mt));
+ ("%s: page %p is mapped", __func__, mt));
} else {
/*
* Read did not fill up entire page.
@@ -998,8 +996,7 @@ vnode_pager_generic_getpages(struct vnod
object->un_pager.vnp.vnp_size - tfoff);
KASSERT((mt->dirty & vm_page_bits(0,
object->un_pager.vnp.vnp_size - tfoff)) == 0,
- ("vnode_pager_generic_getpages: page %p is dirty",
- mt));
+ ("%s: page %p is dirty", __func__, mt));
}
if (i != reqpage)
More information about the svn-src-all
mailing list