Lines Matching refs:lof

352 inval_range(ml_unit_t *ul, cirbuf_t *cb, off_t lof, off_t nb)
355 off_t elof = lof + nb;
360 * discard all bufs that overlap the range (lof, lof + nb)
371 if ((buflof < lof && bufelof <= lof) ||
576 within_range(off_t lof, daddr_t blkno, ulong_t bcount)
580 return ((lof >= blof) && (lof < (blof + bcount)));
584 find_bp(ml_unit_t *ul, cirbuf_t *cb, off_t lof)
589 * find a buf that contains the offset lof
595 within_range(lof, bp->b_blkno, bp->b_bcount)) {
608 find_read_lof(ml_unit_t *ul, cirbuf_t *cb, off_t lof)
631 if (lof <= rlof)
632 /* lof is prior to the range represented by the write buf */
635 /* lof follows the range represented by the write buf */
640 get_read_bp(ml_unit_t *ul, off_t lof)
649 if ((bp = find_bp(ul, &ul->un_wrbuf, lof)) != NULL) {
653 if ((bp = find_bp(ul, &ul->un_rdbuf, lof)) != NULL) {
673 bp->b_blkno = btodb(lof);
674 lof = dbtob(bp->b_blkno);
675 rlof = find_read_lof(ul, &ul->un_wrbuf, lof);
676 bp->b_bcount = MIN(bp->b_bufsize, rlof - lof);
871 * return current lof for next read
883 * copy complete - return current lof
1082 * seek nb bytes from location lof
1085 logseek(ml_unit_t *ul, off_t lof, size_t nb, off_t *lofp)
1091 bp = get_read_bp(ul, lof);
1096 actual = fetchbuf(ul, bp, NULL, nb, &lof);
1100 *lofp = lof;
1117 off_t lof; /* log device offset to read from */
1162 error = logseek(ul, me->me_lof, rnb, &lof);
1169 lof = me->me_lof;
1175 bp = get_read_bp(ul, lof);
1182 actual = fetchbuf(ul, bp, rva, rnb, &lof);
1245 /* compute header's lof */
1257 /* add to last sector's lof */
1320 * The tail will be set to the sector following lof+nb
1321 * lof + nb == size of the last delta + commit record
1325 ldl_settail(ml_unit_t *ul, off_t lof, size_t nb)
1334 if (lof == -1) {
1349 (void) logseek(ul, lof, nb, &new_lof);
1381 ldl_logscan_ident(ml_unit_t *ul, buf_t *bp, off_t lof)
1417 * make sure that lof is still within range
1419 return (within_range(lof, bp->b_blkno, bp->b_bcount));
1423 ldl_logscan_nbcommit(off_t lof)
1426 * lof is the offset following the commit header. However,
1427 * if the commit header fell on the end-of-sector, then lof
1432 if ((lof & (DEV_BSIZE - 1)) == 0)
1434 return (NB_LEFT_IN_SECTOR(lof));