Eliminate an archaic band-aid. The immediately preceding comment already
explains why the band-aid is unnecessary. Suggested by: tegge
This commit is contained in:
parent
4c4917ba97
commit
78cfe1f7bd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191531
@ -916,13 +916,11 @@ RetryFault:;
|
||||
KASSERT(fs.m->oflags & VPO_BUSY,
|
||||
("vm_fault: page %p not busy!", fs.m));
|
||||
/*
|
||||
* Sanity check: page must be completely valid or it is not fit to
|
||||
* Page must be completely valid or it is not fit to
|
||||
* map into user space. vm_pager_get_pages() ensures this.
|
||||
*/
|
||||
if (fs.m->valid != VM_PAGE_BITS_ALL) {
|
||||
vm_page_zero_invalid(fs.m, TRUE);
|
||||
printf("Warning: page %p partially invalid on fault\n", fs.m);
|
||||
}
|
||||
KASSERT(fs.m->valid == VM_PAGE_BITS_ALL,
|
||||
("vm_fault: page %p partially invalid", fs.m));
|
||||
VM_OBJECT_UNLOCK(fs.object);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user