• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/geom/journal/

Lines Matching refs:pbp

804 	struct bio *nbp, *cbp, *pbp;
812 pbp = NULL;
842 if (pbp == NULL)
845 pbp->bio_next = nbp;
848 GJ_DEBUG(3, "INSERT(%p): 2 (nbp=%p pbp=%p)", *head, nbp,
849 pbp);
964 if (pbp == NULL)
967 pbp->bio_next = nbp;
988 pbp = cbp;
991 if (pbp == NULL)
994 pbp->bio_next = nbp;
997 GJ_DEBUG(3, "INSERT(%p): 8 (nbp=%p pbp=%p)", *head, nbp, pbp);
1020 struct bio *cbp, *pbp;
1024 pbp = NULL;
1028 pbp = NULL;
1032 if (pbp == NULL) {
1033 pbp = cbp;
1037 if (pbp->bio_offset + pbp->bio_length != cbp->bio_offset) {
1039 KASSERT(pbp->bio_offset + pbp->bio_length < cbp->bio_offset,
1041 (intmax_t)pbp->bio_offset,
1042 (intmax_t)pbp->bio_length,
1044 pbp = cbp;
1048 if (pbp->bio_length + cbp->bio_length > MAXPHYS) {
1049 pbp = cbp;
1053 GJ_LOGREQ(4, pbp, "Join: ");
1055 pbp->bio_data = gj_realloc(pbp->bio_data,
1056 pbp->bio_length + cbp->bio_length, pbp->bio_length);
1057 bcopy(cbp->bio_data, pbp->bio_data + pbp->bio_length,
1060 pbp->bio_length += cbp->bio_length;
1061 pbp->bio_next = cbp->bio_next;
1063 cbp = pbp;
1066 GJ_LOGREQ(4, pbp, "Got: ");
1168 struct bio *pbp;
1174 pbp = bp->bio_parent;
1183 g_destroy_bio(pbp);
1188 pbp->bio_data = bp->bio_data;
1190 g_io_request(pbp, cp);
1240 struct bio *bp, *fbp, *pbp;
1265 GJQ_LAST(sc->sc_flush_queue, pbp);
1275 GJQ_INSERT_AFTER(sc->sc_flush_queue, fbp, pbp);
1276 pbp = fbp;
1310 GJQ_INSERT_AFTER(sc->sc_flush_queue, bp, pbp);
1311 pbp = bp;
1477 g_journal_read_find(struct bio *head, int sorted, struct bio *pbp, off_t ostart,
1503 pbp->bio_data + cstart - pbp->bio_offset, cend - cstart);
1504 pbp->bio_completed += cend - cstart;
1505 if (pbp->bio_completed == pbp->bio_length) {
1510 g_io_deliver(pbp, 0);
1511 return (pbp);
1528 g_journal_read(struct g_journal_softc *sc, struct bio *pbp, off_t ostart,
1566 bp = g_journal_read_find(head, sorted, pbp, ostart, oend);
1567 if (bp == pbp) { /* Got the whole request. */
1580 nbp = g_duplicate_bio(pbp);
1583 pbp->bio_data + cstart - pbp->bio_offset;
1595 g_journal_read(sc, pbp, ostart, cstart);
1597 g_journal_read(sc, pbp, cend, oend);
1604 nbp = g_duplicate_bio(pbp);
1606 nbp->bio_data = pbp->bio_data + ostart - pbp->bio_offset;
1624 struct bio *pbp;
1629 pbp = bp->bio_parent;
1630 pbp->bio_inbed++;
1631 pbp->bio_completed += bp->bio_length;
1634 if (pbp->bio_error == 0)
1635 pbp->bio_error = bp->bio_error;
1640 if (pbp->bio_children == pbp->bio_inbed &&
1641 pbp->bio_completed == pbp->bio_length) {
1643 g_io_deliver(pbp, 0);