* Associate a p-buffer with a vnode. * * Also sets B_PAGING flag to indicate that vnode is not fully associated * with the buffer. i.e. the bp has not been linked into the vnode or * ref-counted. */
| 455 | * ref-counted. |
| 456 | */ |
| 457 | void |
| 458 | pbgetbo(struct bufobj *bo, struct buf *bp) |
| 459 | { |
| 460 | |
| 461 | KASSERT(bp->b_vp == NULL, ("pbgetbo: not free (vnode)")); |
| 462 | KASSERT(bp->b_bufobj == NULL, ("pbgetbo: not free (bufobj)")); |
| 463 | |
| 464 | bp->b_flags |= B_PAGING; |
| 465 | bp->b_bufobj = bo; |
| 466 | } |
| 467 | |
| 468 | /* |
| 469 | * Disassociate a p-buffer from a vnode. |
no outgoing calls
no test coverage detected