diff options
author | alc <alc@FreeBSD.org> | 2009-04-26 20:54:57 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-04-26 20:54:57 +0000 |
commit | b9963f1636729433e21ced13e73fb604d7a83a77 (patch) | |
tree | 4e69e1a27532eae8f91d0b2406f29ed101ec4372 /sys/vm | |
parent | 091822fecfcebc0861e23f9f47381eaaa04d9494 (diff) | |
download | FreeBSD-src-b9963f1636729433e21ced13e73fb604d7a83a77.zip FreeBSD-src-b9963f1636729433e21ced13e73fb604d7a83a77.tar.gz |
Eliminate an archaic band-aid. The immediately preceding comment already
explains why the band-aid is unnecessary.
Suggested by: tegge
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_fault.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 26a2d6a..48ed991 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -916,13 +916,11 @@ vnode_locked: 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); /* |