Lines Matching refs:chunk
165 static int snap_getchunk(struct snapshot_id *sidp, chunknumber_t chunk,
662 chunknumber_t chunk; in snap_strategy() local
715 chunk = dbtocowchunk(&sidp->sid_cowinfo->cow_map, reqptr); in snap_strategy()
720 if ((error = snap_getchunk(sidp, chunk, off, len, buf)) != 0) { in snap_strategy()
731 chunk, off, len, bp->b_resid, error); in snap_strategy()
772 snap_getchunk(struct snapshot_id *sidp, chunknumber_t chunk, int offset, in snap_getchunk() argument
789 if (chunk >= (cmap->cmap_bmsize * NBBY)) { in snap_getchunk()
799 if (isclr(cmap->cmap_candidate, chunk)) { in snap_getchunk()
814 if (isclr(cmap->cmap_hastrans, chunk)) { in snap_getchunk()
827 snapbuf->b_lblkno = lbtodb(chunk * cmap->cmap_chunksz + offset); in snap_getchunk()
882 cmn = transtbl_get(cmap, chunk); in snap_getchunk()
900 bf_index = chunk / cmap->cmap_chunksperbf; in snap_getchunk()
905 buffer, len, ((chunk % cmap->cmap_chunksperbf) * in snap_getchunk()
1189 transtbl_add(cow_map_t *cmap, chunknumber_t chunk, caddr_t buf) in transtbl_add() argument
1201 cmnode->cmn_chunk = chunk; in transtbl_add()
1220 transtbl_get(cow_map_t *cmap, chunknumber_t chunk) in transtbl_get() argument
1229 if (cmn->cmn_chunk == chunk) in transtbl_get()