Make *getpages()s' assertion on the state of each page's dirty bits
stricter.
This commit is contained in:
parent
760bc48e7e
commit
3933ec4d15
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192986
@ -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 {
|
||||
/*
|
||||
|
@ -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 {
|
||||
/*
|
||||
|
@ -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 {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user