Make *getpages()s' assertion on the state of each page's dirty bits

stricter.
This commit is contained in:
Alan Cox 2009-05-28 18:11:09 +00:00
parent 760bc48e7e
commit 3933ec4d15
3 changed files with 3 additions and 3 deletions

View File

@ -311,7 +311,7 @@ ncl_getpages(struct vop_getpages_args *ap)
*/
m->valid = 0;
vm_page_set_valid(m, 0, size - toff);
KASSERT((m->dirty & vm_page_bits(0, size - toff)) == 0,
KASSERT(m->dirty == 0,
("nfs_getpages: page %p is dirty", m));
} else {
/*

View File

@ -525,7 +525,7 @@ smbfs_getpages(ap)
*/
m->valid = 0;
vm_page_set_valid(m, 0, size - toff);
KASSERT((m->dirty & vm_page_bits(0, size - toff)) == 0,
KASSERT(m->dirty == 0,
("smbfs_getpages: page %p is dirty", m));
} else {
/*

View File

@ -214,7 +214,7 @@ nfs_getpages(struct vop_getpages_args *ap)
*/
m->valid = 0;
vm_page_set_valid(m, 0, size - toff);
KASSERT((m->dirty & vm_page_bits(0, size - toff)) == 0,
KASSERT(m->dirty == 0,
("nfs_getpages: page %p is dirty", m));
} else {
/*