* Free the io map PTEs associated with this IO operation. * We also invalidate the TLB entries and restore the original b_addr. * * This function only works with pager buffers. */
| 4976 | * This function only works with pager buffers. |
| 4977 | */ |
| 4978 | void |
| 4979 | vunmapbuf(struct buf *bp) |
| 4980 | { |
| 4981 | int npages; |
| 4982 | |
| 4983 | npages = bp->b_npages; |
| 4984 | if (buf_mapped(bp)) |
| 4985 | pmap_qremove(trunc_page((vm_offset_t)bp->b_data), npages); |
| 4986 | vm_page_unhold_pages(bp->b_pages, npages); |
| 4987 | |
| 4988 | bp->b_data = unmapped_buf; |
| 4989 | } |
| 4990 | |
| 4991 | void |
| 4992 | bdone(struct buf *bp) |
nothing calls this directly
no test coverage detected