|
Lines 344-350
Link Here
|
| 344 |
* Do the vm_fault if needed; do the copy-on-write thing |
344 |
* Do the vm_fault if needed; do the copy-on-write thing |
| 345 |
* when reading stuff off device into memory. |
345 |
* when reading stuff off device into memory. |
| 346 |
*/ |
346 |
*/ |
| 347 |
vm_fault_quick(addr, |
347 |
vm_fault_quick((addr >= bp->b_data) ? addr : bp->b_data, |
| 348 |
(bp->b_iocmd == BIO_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ); |
348 |
(bp->b_iocmd == BIO_READ)?(VM_PROT_READ|VM_PROT_WRITE):VM_PROT_READ); |
| 349 |
pa = trunc_page(pmap_kextract((vm_offset_t) addr)); |
349 |
pa = trunc_page(pmap_kextract((vm_offset_t) addr)); |
| 350 |
if (pa == 0) |
350 |
if (pa == 0) |