Track the number of wired pages to avoid unwiring unwired pages.

Reviewed by:	alfred
This commit is contained in:
tanimura 2002-03-05 00:51:03 +00:00
parent 95b6324d69
commit 66d03d29ff

View File

@ -679,6 +679,7 @@ pipe_destroy_write_buffer(wpipe)
}
for (i = 0; i < wpipe->pipe_map.npages; i++)
vm_page_unwire(wpipe->pipe_map.ms[i], 1);
wpipe->pipe_map.npages = 0;
}
/*