Lines Matching refs:ctr
554 transaction *ctr, *prev=NULL, *next;
644 for (ctr = jnl->completed_trs; ctr; prev=ctr, ctr=next) {
645 if (ctr->journal_start == jnl->active_start) {
646 jnl->active_start = ctr->journal_end;
648 prev->next = ctr->next;
650 if (ctr == jnl->completed_trs) {
651 jnl->completed_trs = ctr->next;
655 ctr->next = jnl->tr_freeme;
656 jnl->tr_freeme = ctr;
657 ctr = NULL;
658 } else if (tr->journal_end == ctr->journal_start) {
659 ctr->journal_start = tr->journal_start;
661 ctr = NULL;
663 } else if (tr->journal_start == ctr->journal_end) {
664 ctr->journal_end = tr->journal_end;
665 next = ctr->next;
667 } else if (ctr->next && ctr->journal_end == ctr->next->journal_start) {
670 next = ctr->next; // temporarily use the "next" variable
671 ctr->journal_end = next->journal_end;
672 ctr->next = next->next;
677 ctr = NULL;
679 next = ctr->next;
692 for (ctr = jnl->completed_trs; ctr && tr->journal_start > ctr->journal_start; prev=ctr, ctr=ctr->next) {
696 if (ctr == NULL && prev == NULL) {
699 } else if (ctr == jnl->completed_trs) {
2288 transaction *ctr;
2301 for (ctr = jnl->completed_trs; ctr; ctr = ctr->next) {
2302 printf(" 0x%.8llx - 0x%.8llx\n", ctr->journal_start, ctr->journal_end);