Lines Matching refs:tlck
152 struct tlock *tlck, struct commit *cd);
154 struct tlock *tlck);
156 struct tlock * tlck);
158 struct tlock * tlck);
167 struct tlock * tlck);
589 struct tlock *tlck; in txLock() local
615 tlck = lid_to_tlock(lid); in txLock()
616 if ((xtid = tlck->tid) == tid) { in txLock()
633 tlck->tid = tid; in txLock()
655 jfs_ip->atlhead = tlck->next; in txLock()
663 lid_to_tlock(last)->next = tlck->next; in txLock()
674 tlck->next = 0; in txLock()
687 tlck = lid_to_tlock(lid); in txLock()
692 tlck->tid = tid; in txLock()
699 tlck->flag = tlckPAGELOCK; in txLock()
705 mp, mp->nohomeok, tid, tlck); in txLock()
717 tlck->flag = tlckINODELOCK; in txLock()
720 tlck->flag |= tlckDIRECTORY; in txLock()
722 tlck->type = 0; in txLock()
725 tlck->ip = ip; in txLock()
726 tlck->mp = mp; in txLock()
742 tlck->next = 0; in txLock()
749 tlck->next = jfs_ip->atlhead; in txLock()
751 if (tlck->next == 0) { in txLock()
762 linelock = (struct linelock *) & tlck->lock; in txLock()
806 jfs_err("UFO tlock:0x%p", tlck); in txLock()
813 tlck->type |= type; in txLock()
815 return tlck; in txLock()
833 tlck, sizeof(*tlck), 0); in txLock()
840 xtid = tlck->tid; /* reacquire after dropping TXN_LOCK */ in txLock()
846 if (xtid && (tlck->mp == mp) && (mp->lid == lid)) in txLock()
872 struct tlock *tlck; in txRelease() local
876 for (lid = tblk->next; lid; lid = tlck->next) { in txRelease()
877 tlck = lid_to_tlock(lid); in txRelease()
878 if ((mp = tlck->mp) != NULL && in txRelease()
879 (tlck->type & tlckBTROOT) == 0) { in txRelease()
902 struct tlock *tlck; in txUnlock() local
917 tlck = lid_to_tlock(lid); in txUnlock()
918 next = tlck->next; in txUnlock()
920 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck); in txUnlock()
923 if ((mp = tlck->mp) != NULL && in txUnlock()
924 (tlck->type & tlckBTROOT) == 0) { in txUnlock()
945 assert(!(tlck->flag & tlckFREEPAGE)); in txUnlock()
955 llid = ((struct linelock *) & tlck->lock)->next; in txUnlock()
992 struct tlock *tlck; in txMaplock() local
1001 tlck = lid_to_tlock(lid); in txMaplock()
1006 tlck->tid = tid; in txMaplock()
1009 tlck->flag = tlckINODELOCK; in txMaplock()
1011 tlck->flag |= tlckDIRECTORY; in txMaplock()
1012 tlck->ip = ip; in txMaplock()
1013 tlck->mp = NULL; in txMaplock()
1015 tlck->type = type; in txMaplock()
1027 tlck->next = 0; in txMaplock()
1034 tlck->next = jfs_ip->atlhead; in txMaplock()
1036 if (tlck->next == 0) { in txMaplock()
1047 maplock = (struct maplock *) & tlck->lock; in txMaplock()
1052 return tlck; in txMaplock()
1063 struct tlock *tlck; in txLinelock() local
1070 tlck = lid_to_tlock(lid); in txLinelock()
1075 linelock = (struct linelock *) tlck; in txLinelock()
1080 if (tlck->flag & tlckDIRECTORY) in txLinelock()
1376 struct tlock *tlck; in txLog() local
1382 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1383 tlck = lid_to_tlock(lid); in txLog()
1385 tlck->flag |= tlckLOG; in txLog()
1388 ip = tlck->ip; in txLog()
1394 switch (tlck->type & tlckTYPE) { in txLog()
1396 xtLog(log, tblk, lrd, tlck); in txLog()
1400 dtLog(log, tblk, lrd, tlck); in txLog()
1404 diLog(log, tblk, lrd, tlck, cd); in txLog()
1408 mapLog(log, tblk, lrd, tlck); in txLog()
1412 dataLog(log, tblk, lrd, tlck); in txLog()
1416 jfs_err("UFO tlock:0x%p", tlck); in txLog()
1429 struct tlock *tlck, struct commit *cd) in diLog() argument
1435 mp = tlck->mp; in diLog()
1446 if (tlck->type & tlckENTRY) { in diLog()
1452 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1455 tlck->flag |= tlckWRITEPAGE; in diLog()
1456 } else if (tlck->type & tlckFREE) { in diLog()
1487 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1492 tlck->flag |= tlckUPDATEMAP; in diLog()
1495 tlck->flag |= tlckWRITEPAGE; in diLog()
1497 jfs_err("diLog: UFO type tlck:0x%p", tlck); in diLog()
1507 struct tlock *tlck) in dataLog() argument
1512 mp = tlck->mp; in dataLog()
1523 if (jfs_dirtable_inline(tlck->ip)) { in dataLog()
1532 tlck->mp = NULL; in dataLog()
1539 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1542 tlck->flag |= tlckWRITEPAGE; in dataLog()
1553 struct tlock * tlck) in dtLog() argument
1559 mp = tlck->mp; in dtLog()
1567 if (tlck->type & tlckBTROOT) in dtLog()
1576 if (tlck->type & (tlckNEW | tlckEXTEND)) { in dtLog()
1582 if (tlck->type & tlckEXTEND) in dtLog()
1589 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1594 if (tlck->type & tlckBTROOT) in dtLog()
1596 tlck->flag |= tlckUPDATEMAP; in dtLog()
1597 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1604 tlck->flag |= tlckWRITEPAGE; in dtLog()
1612 if (tlck->type & (tlckENTRY | tlckRELINK)) { in dtLog()
1618 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1621 tlck->flag |= tlckWRITEPAGE; in dtLog()
1632 if (tlck->type & (tlckFREE | tlckRELOCATE)) { in dtLog()
1638 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1645 tlck->flag |= tlckUPDATEMAP; in dtLog()
1656 struct tlock * tlck) in xtLog() argument
1668 ip = tlck->ip; in xtLog()
1669 mp = tlck->mp; in xtLog()
1677 if (tlck->type & tlckBTROOT) { in xtLog()
1687 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1689 maplock = (struct maplock *) & tlck->lock; in xtLog()
1696 if (tlck->type & (tlckNEW | tlckGROW | tlckRELINK)) { in xtLog()
1708 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1725 tlck->flag |= tlckUPDATEMAP; in xtLog()
1757 tlck->ip, mp, tlck, lwm, xadlock->count); in xtLog()
1763 tlck->flag |= tlckWRITEPAGE; in xtLog()
1774 if (tlck->type & tlckFREE) { in xtLog()
1801 if (tlck->type & tlckBTROOT) { in xtLog()
1805 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1815 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1823 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1829 tlck->flag |= tlckUPDATEMAP; in xtLog()
1860 tlck->ip, mp, xadlock->count); in xtLog()
1866 && !(tlck->type & tlckBTROOT)) in xtLog()
1867 tlck->flag |= tlckFREEPAGE; in xtLog()
1885 if (tlck->type & tlckTRUNCATE) { in xtLog()
1918 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1951 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1960 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1977 tlck->flag |= tlckUPDATEMAP; in xtLog()
1983 tlck->ip, mp, xadlock->count, lwm, next); in xtLog()
1997 tlck->flag |= tlckUPDATEMAP; in xtLog()
2017 tlck->flag |= tlckUPDATEMAP; in xtLog()
2023 tlck->ip, mp, xadlock->count, next, hwm); in xtLog()
2028 tlck->flag |= tlckWRITEPAGE; in xtLog()
2039 struct tlock * tlck) in mapLog() argument
2052 if (tlck->type & tlckRELOCATE) { in mapLog()
2057 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2081 tlck->flag |= tlckUPDATEMAP; in mapLog()
2096 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2115 tlck->flag |= tlckUPDATEMAP; in mapLog()
2127 struct tlock *tlck = NULL; in txEA() local
2139 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2140 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2148 tlck = NULL; in txEA()
2158 if (tlck == NULL) { in txEA()
2159 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2160 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2179 struct tlock *tlck; in txForce() local
2188 tlck = lid_to_tlock(tblk->next); in txForce()
2189 lid = tlck->next; in txForce()
2190 tlck->next = 0; in txForce()
2192 tlck = lid_to_tlock(lid); in txForce()
2193 next = tlck->next; in txForce()
2194 tlck->next = tblk->next; in txForce()
2204 tlck = lid_to_tlock(lid); in txForce()
2205 next = tlck->next; in txForce()
2207 if ((mp = tlck->mp) != NULL && in txForce()
2208 (tlck->type & tlckBTROOT) == 0) { in txForce()
2211 if (tlck->flag & tlckWRITEPAGE) { in txForce()
2212 tlck->flag &= ~tlckWRITEPAGE; in txForce()
2250 struct tlock *tlck; in txUpdateMap() local
2274 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2275 tlck = lid_to_tlock(lid); in txUpdateMap()
2277 if ((tlck->flag & tlckUPDATEMAP) == 0) in txUpdateMap()
2280 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2288 mp = tlck->mp; in txUpdateMap()
2298 maplock = (struct maplock *) & tlck->lock; in txUpdateMap()
2326 if (tlck->flag & tlckDIRECTORY) in txUpdateMap()
2334 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2338 tlck->mp->lid = 0; in txUpdateMap()
2343 tlck->mp = NULL; in txUpdateMap()
2550 struct tlock *xtlck, *tlck; in txFreelock() local
2560 tlck = lid_to_tlock(lid); in txFreelock()
2561 if (tlck->flag & tlckFREELOCK) { in txFreelock()
2562 xtlck->next = tlck->next; in txFreelock()
2565 xtlck = tlck; in txFreelock()
2598 struct tlock *tlck; in txAbort() local
2604 tlck = lid_to_tlock(lid); in txAbort()
2605 next = tlck->next; in txAbort()
2606 mp = tlck->mp; in txAbort()
2607 JFS_IP(tlck->ip)->xtlid = 0; in txAbort()