Lines Matching refs:next

191 	TxAnchor.freelock = TxLock[lid].next;
205 TxLock[lid].next = TxAnchor.freelock;
276 TxBlock[k].next = k + 1;
280 TxBlock[k].next = 0;
304 TxLock[k].next = k + 1;
305 TxLock[k].next = 0;
403 if ((tblk->next == 0) && !(flag & COMMIT_FORCE)) {
411 TxAnchor.freetid = tblk->next;
423 tblk->next = tblk->last = tblk->xflag = tblk->flag = tblk->lsn = 0;
528 assert(tblk->next == 0);
533 tblk->next = TxAnchor.freetid;
655 jfs_ip->atlhead = tlck->next;
659 lid_to_tlock(last)->next != lid;
660 last = lid_to_tlock(last)->next) {
663 lid_to_tlock(last)->next = tlck->next;
670 if (tblk->next)
671 lid_to_tlock(tblk->last)->next = lid;
673 tblk->next = lid;
674 tlck->next = 0;
738 if (tblk->next)
739 lid_to_tlock(tblk->last)->next = lid;
741 tblk->next = lid;
742 tlck->next = 0;
749 tlck->next = jfs_ip->atlhead;
751 if (tlck->next == 0) {
763 linelock->next = 0;
876 for (lid = tblk->next; lid; lid = tlck->next) {
904 lid_t lid, next, llid, k;
916 for (lid = tblk->next; lid; lid = next) {
918 next = tlck->next;
955 llid = ((struct linelock *) & tlck->lock)->next;
958 k = linelock->next;
966 tblk->next = tblk->last = 0;
1023 if (tblk->next)
1024 lid_to_tlock(tblk->last)->next = lid;
1026 tblk->next = lid;
1027 tlck->next = 0;
1034 tlck->next = jfs_ip->atlhead;
1036 if (tlck->next == 0) {
1048 maplock->next = 0;
1076 linelock->next = 0;
1084 linelock->next = tlock->next;
1085 tlock->next = lid;
1241 lid_to_tlock(jfs_ip->atltail)->next = tblk->next;
1242 tblk->next = jfs_ip->atlhead;
1382 for (lid = tblk->next; lid; lid = tlck->next) {
1666 int next, lwm, hwm;
1685 next = le16_to_cpu(p->header.nextindex);
1699 * extents (XAD_NEW|XAD_EXTEND) of XAD[lwm:next) from
1711 * for alloc of new/extended extents of XAD[lwm:next)
1719 if (lwm == next)
1721 if (lwm > next) {
1722 jfs_err("xtLog: lwm > next");
1727 xadlock->count = next - lwm;
1881 * | next - truncation point
1909 * extents (XAD_NEW|XAD_EXTEND) of XAD[lwm:next) from
1921 * truncate entry XAD[twm == next - 1]:
1923 if (twm == next - 1) {
1926 * entry XAD[next - 1]:
1941 * free entries XAD[next:hwm]:
1943 if (hwm >= next) {
1945 * XAD[next:hwm] from the deleted page itself
1954 cpu_to_le16(hwm - next + 1);
1956 xtlck->header.offset = next;
1957 xtlck->header.length = hwm - next + 1;
1969 * allocate entries XAD[lwm:next):
1971 if (lwm < next) {
1973 * for alloc of new/extended extents of XAD[lwm:next)
1979 xadlock->count = next - lwm;
1982 jfs_info("xtLog: alloc ip:0x%p mp:0x%p count:%d lwm:%d next:%d",
1983 tlck->ip, mp, xadlock->count, lwm, next);
1989 * truncate entry XAD[twm == next - 1]:
1991 if (twm == next - 1) {
1994 * entry XAD[next - 1];
2010 * free entries XAD[next:hwm]:
2012 if (hwm >= next) {
2014 * to free extents of XAD[next:hwm] from thedeleted
2019 xadlock->count = hwm - next + 1;
2020 xadlock->xdlist = &p->xad[next];
2022 jfs_info("xtLog: free ip:0x%p mp:0x%p count:%d next:%d hwm:%d",
2023 tlck->ip, mp, xadlock->count, next, hwm);
2180 lid_t lid, next;
2188 tlck = lid_to_tlock(tblk->next);
2189 lid = tlck->next;
2190 tlck->next = 0;
2193 next = tlck->next;
2194 tlck->next = tblk->next;
2195 tblk->next = lid;
2196 lid = next;
2203 for (lid = tblk->next; lid; lid = next) {
2205 next = tlck->next;
2274 for (lid = tblk->next; lid; lid = tlck->next) {
2559 while ((lid = xtlck->next) != 0) {
2562 xtlck->next = tlck->next;
2595 lid_t lid, next;
2603 for (lid = tblk->next; lid; lid = next) {
2605 next = tlck->next;
2631 tblk->next = tblk->last = 0;
2823 jfs_ip = list_entry(TxAnchor.anon_list.next,
2895 jfs_ip = list_entry(TxAnchor.anon_list.next,