Track the number of wired pages to avoid unwiring unwired pages.
Reviewed by: alfred
This commit is contained in:
parent
95b6324d69
commit
66d03d29ff
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user