* Look up a buffer using the buffer tries. */
| 2416 | * Look up a buffer using the buffer tries. |
| 2417 | */ |
| 2418 | struct buf * |
| 2419 | gbincore(struct bufobj *bo, daddr_t lblkno) |
| 2420 | { |
| 2421 | struct buf *bp; |
| 2422 | |
| 2423 | ASSERT_BO_LOCKED(bo); |
| 2424 | bp = BUF_PCTRIE_LOOKUP(&bo->bo_clean.bv_root, lblkno); |
| 2425 | if (bp != NULL) |
| 2426 | return (bp); |
| 2427 | return (BUF_PCTRIE_LOOKUP(&bo->bo_dirty.bv_root, lblkno)); |
| 2428 | } |
| 2429 | |
| 2430 | /* |
| 2431 | * Look up a buf using the buffer tries, without the bufobj lock. This relies |
no outgoing calls
no test coverage detected