Remove an unnecessary call to pmap_remove_all(). The given page is not

mapped because its contents are invalid.

Reviewed by: tegge
This commit is contained in:
Alan Cox 2006-01-23 00:00:45 +00:00
parent 02dd83311a
commit bb53e2bf27

View file

@ -1518,7 +1518,6 @@ vfs_vmio_release(struct buf *bp)
*/
if ((bp->b_flags & B_ASYNC) == 0 && !m->valid &&
m->hold_count == 0) {
pmap_remove_all(m);
vm_page_free(m);
} else if (bp->b_flags & B_DIRECT) {
vm_page_try_to_free(m);