Lines Matching refs:oldbp
1445 struct buf *oldbp; /* buffer to store old data in */ in fssnap_translate() local
1579 oldbp = getrbuf(KM_SLEEP); in fssnap_translate()
1580 oldbp->b_lblkno = cowchunktodb(cmap, cowchunk); in fssnap_translate()
1581 oldbp->b_edev = wbp->b_edev; in fssnap_translate()
1582 oldbp->b_bcount = cmap->cmap_chunksz; in fssnap_translate()
1583 oldbp->b_bufsize = cmap->cmap_chunksz; in fssnap_translate()
1584 oldbp->b_iodone = NULL; in fssnap_translate()
1585 oldbp->b_proc = NULL; in fssnap_translate()
1586 oldbp->b_flags = B_READ; in fssnap_translate()
1587 oldbp->b_un.b_addr = kmem_alloc(cmap->cmap_chunksz, KM_SLEEP); in fssnap_translate()
1589 (void) bdev_strategy(oldbp); in fssnap_translate()
1590 (void) biowait(oldbp); in fssnap_translate()
1597 if ((error = geterror(oldbp)) != 0) { in fssnap_translate()
1601 cowchunk, oldbp->b_lblkno, oldbp->b_bcount, error); in fssnap_translate()
1602 kmem_free(oldbp->b_un.b_addr, cmap->cmap_chunksz); in fssnap_translate()
1603 freerbuf(oldbp); in fssnap_translate()
1614 cmn = transtbl_add(cmap, cowchunk, oldbp->b_un.b_addr); in fssnap_translate()
1615 freerbuf(oldbp); in fssnap_translate()