Lines Matching refs:prev
466 transaction *ctr, *prev=NULL, *next;
556 for(ctr=jnl->completed_trs; ctr; prev=ctr, ctr=next) {
559 if (prev) {
560 prev->next = ctr->next;
603 prev = NULL;
604 for(ctr=jnl->completed_trs; ctr && tr->journal_start > ctr->journal_start; prev=ctr, ctr=ctr->next) {
608 if (ctr == NULL && prev == NULL) {
615 tr->next = prev->next;
616 prev->next = tr;
2407 block_list_header *blhdr, *prev=NULL;
2434 for(blhdr=tr->blhdr; blhdr; prev=blhdr,blhdr=(block_list_header *)((long)blhdr->binfo[0].bnum)) {
2454 && prev
2455 && (prev->num_blocks+1) <= prev->max_blocks
2456 && (prev->bytes_used+buf_size(bp)) <= (uint32_t)tr->tbuffer_size) {
2457 blhdr = prev;
2461 if (prev == NULL) {
2462 panic("jnl: modify block end: no way man, prev == NULL?!?, jnl %p, bp %p\n", jnl, bp);
2466 // no room in the block_list_header pointed to by prev
2469 // through prev->binfo[0].bnum. that's a skanky way to do things but
2492 prev->binfo[0].bnum = (off_t)((long)nblhdr);