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);
584 struct tlock *tlck; in txLock() local
610 tlck = lid_to_tlock(lid); in txLock()
611 if ((xtid = tlck->tid) == tid) { in txLock()
628 tlck->tid = tid; in txLock()
650 jfs_ip->atlhead = tlck->next; in txLock()
658 lid_to_tlock(last)->next = tlck->next; in txLock()
669 tlck->next = 0; in txLock()
682 tlck = lid_to_tlock(lid); in txLock()
687 tlck->tid = tid; in txLock()
694 tlck->flag = tlckPAGELOCK; in txLock()
700 mp, mp->nohomeok, tid, tlck); in txLock()
712 tlck->flag = tlckINODELOCK; in txLock()
715 tlck->flag |= tlckDIRECTORY; in txLock()
717 tlck->type = 0; in txLock()
720 tlck->ip = ip; in txLock()
721 tlck->mp = mp; in txLock()
737 tlck->next = 0; in txLock()
744 tlck->next = jfs_ip->atlhead; in txLock()
746 if (tlck->next == 0) { in txLock()
757 linelock = (struct linelock *) & tlck->lock; in txLock()
801 jfs_err("UFO tlock:0x%p", tlck); in txLock()
808 tlck->type |= type; in txLock()
810 return tlck; in txLock()
828 tlck, sizeof(*tlck), 0); in txLock()
835 xtid = tlck->tid; /* reacquire after dropping TXN_LOCK */ in txLock()
841 if (xtid && (tlck->mp == mp) && (mp->lid == lid)) in txLock()
867 struct tlock *tlck; in txRelease() local
871 for (lid = tblk->next; lid; lid = tlck->next) { in txRelease()
872 tlck = lid_to_tlock(lid); in txRelease()
873 if ((mp = tlck->mp) != NULL && in txRelease()
874 (tlck->type & tlckBTROOT) == 0) { in txRelease()
897 struct tlock *tlck; in txUnlock() local
912 tlck = lid_to_tlock(lid); in txUnlock()
913 next = tlck->next; in txUnlock()
915 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck); in txUnlock()
918 if ((mp = tlck->mp) != NULL && in txUnlock()
919 (tlck->type & tlckBTROOT) == 0) { in txUnlock()
940 assert(!(tlck->flag & tlckFREEPAGE)); in txUnlock()
950 llid = ((struct linelock *) & tlck->lock)->next; in txUnlock()
987 struct tlock *tlck; in txMaplock() local
996 tlck = lid_to_tlock(lid); in txMaplock()
1001 tlck->tid = tid; in txMaplock()
1004 tlck->flag = tlckINODELOCK; in txMaplock()
1006 tlck->flag |= tlckDIRECTORY; in txMaplock()
1007 tlck->ip = ip; in txMaplock()
1008 tlck->mp = NULL; in txMaplock()
1010 tlck->type = type; in txMaplock()
1022 tlck->next = 0; in txMaplock()
1029 tlck->next = jfs_ip->atlhead; in txMaplock()
1031 if (tlck->next == 0) { in txMaplock()
1042 maplock = (struct maplock *) & tlck->lock; in txMaplock()
1047 return tlck; in txMaplock()
1058 struct tlock *tlck; in txLinelock() local
1065 tlck = lid_to_tlock(lid); in txLinelock()
1070 linelock = (struct linelock *) tlck; in txLinelock()
1075 if (tlck->flag & tlckDIRECTORY) in txLinelock()
1373 struct tlock *tlck; in txLog() local
1379 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1380 tlck = lid_to_tlock(lid); in txLog()
1382 tlck->flag |= tlckLOG; in txLog()
1385 ip = tlck->ip; in txLog()
1391 switch (tlck->type & tlckTYPE) { in txLog()
1393 xtLog(log, tblk, lrd, tlck); in txLog()
1397 dtLog(log, tblk, lrd, tlck); in txLog()
1401 diLog(log, tblk, lrd, tlck, cd); in txLog()
1405 mapLog(log, tblk, lrd, tlck); in txLog()
1409 dataLog(log, tblk, lrd, tlck); in txLog()
1413 jfs_err("UFO tlock:0x%p", tlck); in txLog()
1426 struct tlock * tlck, struct commit * cd) in diLog() argument
1433 mp = tlck->mp; in diLog()
1444 if (tlck->type & tlckENTRY) { in diLog()
1450 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1453 tlck->flag |= tlckWRITEPAGE; in diLog()
1454 } else if (tlck->type & tlckFREE) { in diLog()
1485 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1490 tlck->flag |= tlckUPDATEMAP; in diLog()
1493 tlck->flag |= tlckWRITEPAGE; in diLog()
1495 jfs_err("diLog: UFO type tlck:0x%p", tlck); in diLog()
1504 assert(tlck->type & tlckEA); in diLog()
1510 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1526 tlck->flag |= tlckUPDATEMAP; in diLog()
1539 struct tlock * tlck) in dataLog() argument
1544 mp = tlck->mp; in dataLog()
1555 if (jfs_dirtable_inline(tlck->ip)) { in dataLog()
1564 tlck->mp = NULL; in dataLog()
1571 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1574 tlck->flag |= tlckWRITEPAGE; in dataLog()
1585 struct tlock * tlck) in dtLog() argument
1591 mp = tlck->mp; in dtLog()
1599 if (tlck->type & tlckBTROOT) in dtLog()
1608 if (tlck->type & (tlckNEW | tlckEXTEND)) { in dtLog()
1614 if (tlck->type & tlckEXTEND) in dtLog()
1621 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1626 if (tlck->type & tlckBTROOT) in dtLog()
1628 tlck->flag |= tlckUPDATEMAP; in dtLog()
1629 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1636 tlck->flag |= tlckWRITEPAGE; in dtLog()
1644 if (tlck->type & (tlckENTRY | tlckRELINK)) { in dtLog()
1650 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1653 tlck->flag |= tlckWRITEPAGE; in dtLog()
1664 if (tlck->type & (tlckFREE | tlckRELOCATE)) { in dtLog()
1670 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1677 tlck->flag |= tlckUPDATEMAP; in dtLog()
1688 struct tlock * tlck) in xtLog() argument
1700 ip = tlck->ip; in xtLog()
1701 mp = tlck->mp; in xtLog()
1709 if (tlck->type & tlckBTROOT) { in xtLog()
1719 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1721 maplock = (struct maplock *) & tlck->lock; in xtLog()
1728 if (tlck->type & (tlckNEW | tlckGROW | tlckRELINK)) { in xtLog()
1740 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1757 tlck->flag |= tlckUPDATEMAP; in xtLog()
1789 tlck->ip, mp, tlck, lwm, xadlock->count); in xtLog()
1795 tlck->flag |= tlckWRITEPAGE; in xtLog()
1806 if (tlck->type & tlckFREE) { in xtLog()
1833 if (tlck->type & tlckBTROOT) { in xtLog()
1837 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1847 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1855 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1861 tlck->flag |= tlckUPDATEMAP; in xtLog()
1892 tlck->ip, mp, xadlock->count); in xtLog()
1898 && !(tlck->type & tlckBTROOT)) in xtLog()
1899 tlck->flag |= tlckFREEPAGE; in xtLog()
1917 if (tlck->type & tlckTRUNCATE) { in xtLog()
1950 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1983 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1992 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2009 tlck->flag |= tlckUPDATEMAP; in xtLog()
2015 tlck->ip, mp, xadlock->count, lwm, next); in xtLog()
2029 tlck->flag |= tlckUPDATEMAP; in xtLog()
2049 tlck->flag |= tlckUPDATEMAP; in xtLog()
2055 tlck->ip, mp, xadlock->count, next, hwm); in xtLog()
2060 tlck->flag |= tlckWRITEPAGE; in xtLog()
2071 struct tlock * tlck) in mapLog() argument
2084 if (tlck->type & tlckRELOCATE) { in mapLog()
2089 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2113 tlck->flag |= tlckUPDATEMAP; in mapLog()
2128 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2147 tlck->flag |= tlckUPDATEMAP; in mapLog()
2159 struct tlock *tlck = NULL; in txEA() local
2171 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2172 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2180 tlck = NULL; in txEA()
2190 if (tlck == NULL) { in txEA()
2191 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2192 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2211 struct tlock *tlck; in txForce() local
2220 tlck = lid_to_tlock(tblk->next); in txForce()
2221 lid = tlck->next; in txForce()
2222 tlck->next = 0; in txForce()
2224 tlck = lid_to_tlock(lid); in txForce()
2225 next = tlck->next; in txForce()
2226 tlck->next = tblk->next; in txForce()
2236 tlck = lid_to_tlock(lid); in txForce()
2237 next = tlck->next; in txForce()
2239 if ((mp = tlck->mp) != NULL && in txForce()
2240 (tlck->type & tlckBTROOT) == 0) { in txForce()
2243 if (tlck->flag & tlckWRITEPAGE) { in txForce()
2244 tlck->flag &= ~tlckWRITEPAGE; in txForce()
2282 struct tlock *tlck; in txUpdateMap() local
2306 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2307 tlck = lid_to_tlock(lid); in txUpdateMap()
2309 if ((tlck->flag & tlckUPDATEMAP) == 0) in txUpdateMap()
2312 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2320 mp = tlck->mp; in txUpdateMap()
2330 maplock = (struct maplock *) & tlck->lock; in txUpdateMap()
2358 if (tlck->flag & tlckDIRECTORY) in txUpdateMap()
2366 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2370 tlck->mp->lid = 0; in txUpdateMap()
2375 tlck->mp = NULL; in txUpdateMap()
2582 struct tlock *xtlck, *tlck; in txFreelock() local
2592 tlck = lid_to_tlock(lid); in txFreelock()
2593 if (tlck->flag & tlckFREELOCK) { in txFreelock()
2594 xtlck->next = tlck->next; in txFreelock()
2597 xtlck = tlck; in txFreelock()
2630 struct tlock *tlck; in txAbort() local
2636 tlck = lid_to_tlock(lid); in txAbort()
2637 next = tlck->next; in txAbort()
2638 mp = tlck->mp; in txAbort()
2639 JFS_IP(tlck->ip)->xtlid = 0; in txAbort()