Lines Matching refs:tlck

165 		struct tlock * tlck, struct commit * cd);
167 struct tlock * tlck);
169 struct tlock * tlck);
171 struct tlock * tlck);
180 struct tlock * tlck);
602 struct tlock *tlck; in txLock() local
628 tlck = lid_to_tlock(lid); in txLock()
629 if ((xtid = tlck->tid) == tid) { in txLock()
646 tlck->tid = tid; in txLock()
668 jfs_ip->atlhead = tlck->next; in txLock()
676 lid_to_tlock(last)->next = tlck->next; in txLock()
687 tlck->next = 0; in txLock()
700 tlck = lid_to_tlock(lid); in txLock()
705 tlck->tid = tid; in txLock()
712 tlck->flag = tlckPAGELOCK; in txLock()
718 mp, mp->nohomeok, tid, tlck); in txLock()
730 tlck->flag = tlckINODELOCK; in txLock()
733 tlck->flag |= tlckDIRECTORY; in txLock()
735 tlck->type = 0; in txLock()
738 tlck->ip = ip; in txLock()
739 tlck->mp = mp; in txLock()
755 tlck->next = 0; in txLock()
762 tlck->next = jfs_ip->atlhead; in txLock()
764 if (tlck->next == 0) { in txLock()
775 linelock = (struct linelock *) & tlck->lock; in txLock()
819 jfs_err("UFO tlock:0x%p", tlck); in txLock()
826 tlck->type |= type; in txLock()
828 return tlck; in txLock()
846 tlck, sizeof(*tlck), 0); in txLock()
853 xtid = tlck->tid; /* reacquire after dropping TXN_LOCK */ in txLock()
859 if (xtid && (tlck->mp == mp) && (mp->lid == lid)) in txLock()
885 struct tlock *tlck; in txRelease() local
889 for (lid = tblk->next; lid; lid = tlck->next) { in txRelease()
890 tlck = lid_to_tlock(lid); in txRelease()
891 if ((mp = tlck->mp) != NULL && in txRelease()
892 (tlck->type & tlckBTROOT) == 0) { in txRelease()
915 struct tlock *tlck; in txUnlock() local
930 tlck = lid_to_tlock(lid); in txUnlock()
931 next = tlck->next; in txUnlock()
933 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck); in txUnlock()
936 if ((mp = tlck->mp) != NULL && in txUnlock()
937 (tlck->type & tlckBTROOT) == 0) { in txUnlock()
958 assert(!(tlck->flag & tlckFREEPAGE)); in txUnlock()
968 llid = ((struct linelock *) & tlck->lock)->next; in txUnlock()
1005 struct tlock *tlck; in txMaplock() local
1014 tlck = lid_to_tlock(lid); in txMaplock()
1019 tlck->tid = tid; in txMaplock()
1022 tlck->flag = tlckINODELOCK; in txMaplock()
1024 tlck->flag |= tlckDIRECTORY; in txMaplock()
1025 tlck->ip = ip; in txMaplock()
1026 tlck->mp = NULL; in txMaplock()
1028 tlck->type = type; in txMaplock()
1040 tlck->next = 0; in txMaplock()
1047 tlck->next = jfs_ip->atlhead; in txMaplock()
1049 if (tlck->next == 0) { in txMaplock()
1060 maplock = (struct maplock *) & tlck->lock; in txMaplock()
1065 return tlck; in txMaplock()
1076 struct tlock *tlck; in txLinelock() local
1083 tlck = lid_to_tlock(lid); in txLinelock()
1088 linelock = (struct linelock *) tlck; in txLinelock()
1093 if (tlck->flag & tlckDIRECTORY) in txLinelock()
1391 struct tlock *tlck; in txLog() local
1397 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1398 tlck = lid_to_tlock(lid); in txLog()
1400 tlck->flag |= tlckLOG; in txLog()
1403 ip = tlck->ip; in txLog()
1409 switch (tlck->type & tlckTYPE) { in txLog()
1411 xtLog(log, tblk, lrd, tlck); in txLog()
1415 dtLog(log, tblk, lrd, tlck); in txLog()
1419 diLog(log, tblk, lrd, tlck, cd); in txLog()
1423 mapLog(log, tblk, lrd, tlck); in txLog()
1427 dataLog(log, tblk, lrd, tlck); in txLog()
1431 jfs_err("UFO tlock:0x%p", tlck); in txLog()
1444 struct tlock * tlck, struct commit * cd) in diLog() argument
1451 mp = tlck->mp; in diLog()
1462 if (tlck->type & tlckENTRY) { in diLog()
1468 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1471 tlck->flag |= tlckWRITEPAGE; in diLog()
1472 } else if (tlck->type & tlckFREE) { in diLog()
1503 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1508 tlck->flag |= tlckUPDATEMAP; in diLog()
1511 tlck->flag |= tlckWRITEPAGE; in diLog()
1513 jfs_err("diLog: UFO type tlck:0x%p", tlck); in diLog()
1522 assert(tlck->type & tlckEA); in diLog()
1528 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1544 tlck->flag |= tlckUPDATEMAP; in diLog()
1557 struct tlock * tlck) in dataLog() argument
1562 mp = tlck->mp; in dataLog()
1573 if (jfs_dirtable_inline(tlck->ip)) { in dataLog()
1582 tlck->mp = NULL; in dataLog()
1589 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1592 tlck->flag |= tlckWRITEPAGE; in dataLog()
1603 struct tlock * tlck) in dtLog() argument
1609 mp = tlck->mp; in dtLog()
1617 if (tlck->type & tlckBTROOT) in dtLog()
1626 if (tlck->type & (tlckNEW | tlckEXTEND)) { in dtLog()
1632 if (tlck->type & tlckEXTEND) in dtLog()
1639 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1644 if (tlck->type & tlckBTROOT) in dtLog()
1646 tlck->flag |= tlckUPDATEMAP; in dtLog()
1647 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1654 tlck->flag |= tlckWRITEPAGE; in dtLog()
1662 if (tlck->type & (tlckENTRY | tlckRELINK)) { in dtLog()
1668 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1671 tlck->flag |= tlckWRITEPAGE; in dtLog()
1682 if (tlck->type & (tlckFREE | tlckRELOCATE)) { in dtLog()
1688 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1695 tlck->flag |= tlckUPDATEMAP; in dtLog()
1706 struct tlock * tlck) in xtLog() argument
1718 ip = tlck->ip; in xtLog()
1719 mp = tlck->mp; in xtLog()
1727 if (tlck->type & tlckBTROOT) { in xtLog()
1737 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1739 maplock = (struct maplock *) & tlck->lock; in xtLog()
1746 if (tlck->type & (tlckNEW | tlckGROW | tlckRELINK)) { in xtLog()
1758 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1775 tlck->flag |= tlckUPDATEMAP; in xtLog()
1807 tlck->ip, mp, tlck, lwm, xadlock->count); in xtLog()
1813 tlck->flag |= tlckWRITEPAGE; in xtLog()
1824 if (tlck->type & tlckFREE) { in xtLog()
1851 if (tlck->type & tlckBTROOT) { in xtLog()
1855 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1865 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1873 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1879 tlck->flag |= tlckUPDATEMAP; in xtLog()
1910 tlck->ip, mp, xadlock->count); in xtLog()
1916 && !(tlck->type & tlckBTROOT)) in xtLog()
1917 tlck->flag |= tlckFREEPAGE; in xtLog()
1935 if (tlck->type & tlckTRUNCATE) { in xtLog()
1968 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2001 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
2010 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2027 tlck->flag |= tlckUPDATEMAP; in xtLog()
2033 tlck->ip, mp, xadlock->count, lwm, next); in xtLog()
2047 tlck->flag |= tlckUPDATEMAP; in xtLog()
2067 tlck->flag |= tlckUPDATEMAP; in xtLog()
2073 tlck->ip, mp, xadlock->count, next, hwm); in xtLog()
2078 tlck->flag |= tlckWRITEPAGE; in xtLog()
2089 struct tlock * tlck) in mapLog() argument
2102 if (tlck->type & tlckRELOCATE) { in mapLog()
2107 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2131 tlck->flag |= tlckUPDATEMAP; in mapLog()
2146 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2165 tlck->flag |= tlckUPDATEMAP; in mapLog()
2177 struct tlock *tlck = NULL; in txEA() local
2189 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2190 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2198 tlck = NULL; in txEA()
2208 if (tlck == NULL) { in txEA()
2209 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2210 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2229 struct tlock *tlck; in txForce() local
2238 tlck = lid_to_tlock(tblk->next); in txForce()
2239 lid = tlck->next; in txForce()
2240 tlck->next = 0; in txForce()
2242 tlck = lid_to_tlock(lid); in txForce()
2243 next = tlck->next; in txForce()
2244 tlck->next = tblk->next; in txForce()
2254 tlck = lid_to_tlock(lid); in txForce()
2255 next = tlck->next; in txForce()
2257 if ((mp = tlck->mp) != NULL && in txForce()
2258 (tlck->type & tlckBTROOT) == 0) { in txForce()
2261 if (tlck->flag & tlckWRITEPAGE) { in txForce()
2262 tlck->flag &= ~tlckWRITEPAGE; in txForce()
2300 struct tlock *tlck; in txUpdateMap() local
2324 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2325 tlck = lid_to_tlock(lid); in txUpdateMap()
2327 if ((tlck->flag & tlckUPDATEMAP) == 0) in txUpdateMap()
2330 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2338 mp = tlck->mp; in txUpdateMap()
2348 maplock = (struct maplock *) & tlck->lock; in txUpdateMap()
2376 if (tlck->flag & tlckDIRECTORY) in txUpdateMap()
2384 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2388 tlck->mp->lid = 0; in txUpdateMap()
2393 tlck->mp = NULL; in txUpdateMap()
2600 struct tlock *xtlck, *tlck; in txFreelock() local
2610 tlck = lid_to_tlock(lid); in txFreelock()
2611 if (tlck->flag & tlckFREELOCK) { in txFreelock()
2612 xtlck->next = tlck->next; in txFreelock()
2615 xtlck = tlck; in txFreelock()
2648 struct tlock *tlck; in txAbort() local
2654 tlck = lid_to_tlock(lid); in txAbort()
2655 next = tlck->next; in txAbort()
2656 mp = tlck->mp; in txAbort()
2657 JFS_IP(tlck->ip)->xtlid = 0; in txAbort()