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);
597 struct tlock *tlck; in txLock() local
623 tlck = lid_to_tlock(lid); in txLock()
624 if ((xtid = tlck->tid) == tid) { in txLock()
641 tlck->tid = tid; in txLock()
663 jfs_ip->atlhead = tlck->next; in txLock()
671 lid_to_tlock(last)->next = tlck->next; in txLock()
682 tlck->next = 0; in txLock()
695 tlck = lid_to_tlock(lid); in txLock()
700 tlck->tid = tid; in txLock()
707 tlck->flag = tlckPAGELOCK; in txLock()
713 mp, mp->nohomeok, tid, tlck); in txLock()
725 tlck->flag = tlckINODELOCK; in txLock()
728 tlck->flag |= tlckDIRECTORY; in txLock()
730 tlck->type = 0; in txLock()
733 tlck->ip = ip; in txLock()
734 tlck->mp = mp; in txLock()
750 tlck->next = 0; in txLock()
757 tlck->next = jfs_ip->atlhead; in txLock()
759 if (tlck->next == 0) { in txLock()
770 linelock = (struct linelock *) & tlck->lock; in txLock()
814 jfs_err("UFO tlock:0x%p", tlck); in txLock()
821 tlck->type |= type; in txLock()
823 return tlck; in txLock()
841 tlck, sizeof(*tlck), 0); in txLock()
848 xtid = tlck->tid; /* reacquire after dropping TXN_LOCK */ in txLock()
854 if (xtid && (tlck->mp == mp) && (mp->lid == lid)) in txLock()
880 struct tlock *tlck; in txRelease() local
884 for (lid = tblk->next; lid; lid = tlck->next) { in txRelease()
885 tlck = lid_to_tlock(lid); in txRelease()
886 if ((mp = tlck->mp) != NULL && in txRelease()
887 (tlck->type & tlckBTROOT) == 0) { in txRelease()
910 struct tlock *tlck; in txUnlock() local
925 tlck = lid_to_tlock(lid); in txUnlock()
926 next = tlck->next; in txUnlock()
928 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck); in txUnlock()
931 if ((mp = tlck->mp) != NULL && in txUnlock()
932 (tlck->type & tlckBTROOT) == 0) { in txUnlock()
953 assert(!(tlck->flag & tlckFREEPAGE)); in txUnlock()
963 llid = ((struct linelock *) & tlck->lock)->next; in txUnlock()
1000 struct tlock *tlck; in txMaplock() local
1009 tlck = lid_to_tlock(lid); in txMaplock()
1014 tlck->tid = tid; in txMaplock()
1017 tlck->flag = tlckINODELOCK; in txMaplock()
1019 tlck->flag |= tlckDIRECTORY; in txMaplock()
1020 tlck->ip = ip; in txMaplock()
1021 tlck->mp = NULL; in txMaplock()
1023 tlck->type = type; in txMaplock()
1035 tlck->next = 0; in txMaplock()
1042 tlck->next = jfs_ip->atlhead; in txMaplock()
1044 if (tlck->next == 0) { in txMaplock()
1055 maplock = (struct maplock *) & tlck->lock; in txMaplock()
1060 return tlck; in txMaplock()
1071 struct tlock *tlck; in txLinelock() local
1078 tlck = lid_to_tlock(lid); in txLinelock()
1083 linelock = (struct linelock *) tlck; in txLinelock()
1088 if (tlck->flag & tlckDIRECTORY) in txLinelock()
1386 struct tlock *tlck; in txLog() local
1392 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1393 tlck = lid_to_tlock(lid); in txLog()
1395 tlck->flag |= tlckLOG; in txLog()
1398 ip = tlck->ip; in txLog()
1404 switch (tlck->type & tlckTYPE) { in txLog()
1406 xtLog(log, tblk, lrd, tlck); in txLog()
1410 dtLog(log, tblk, lrd, tlck); in txLog()
1414 diLog(log, tblk, lrd, tlck, cd); in txLog()
1418 mapLog(log, tblk, lrd, tlck); in txLog()
1422 dataLog(log, tblk, lrd, tlck); in txLog()
1426 jfs_err("UFO tlock:0x%p", tlck); in txLog()
1439 struct tlock * tlck, struct commit * cd) in diLog() argument
1446 mp = tlck->mp; in diLog()
1457 if (tlck->type & tlckENTRY) { in diLog()
1463 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1466 tlck->flag |= tlckWRITEPAGE; in diLog()
1467 } else if (tlck->type & tlckFREE) { in diLog()
1498 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1503 tlck->flag |= tlckUPDATEMAP; in diLog()
1506 tlck->flag |= tlckWRITEPAGE; in diLog()
1508 jfs_err("diLog: UFO type tlck:0x%p", tlck); in diLog()
1517 assert(tlck->type & tlckEA); in diLog()
1523 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1539 tlck->flag |= tlckUPDATEMAP; in diLog()
1552 struct tlock * tlck) in dataLog() argument
1557 mp = tlck->mp; in dataLog()
1568 if (jfs_dirtable_inline(tlck->ip)) { in dataLog()
1577 tlck->mp = NULL; in dataLog()
1584 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1587 tlck->flag |= tlckWRITEPAGE; in dataLog()
1598 struct tlock * tlck) in dtLog() argument
1604 mp = tlck->mp; in dtLog()
1612 if (tlck->type & tlckBTROOT) in dtLog()
1621 if (tlck->type & (tlckNEW | tlckEXTEND)) { in dtLog()
1627 if (tlck->type & tlckEXTEND) in dtLog()
1634 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1639 if (tlck->type & tlckBTROOT) in dtLog()
1641 tlck->flag |= tlckUPDATEMAP; in dtLog()
1642 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1649 tlck->flag |= tlckWRITEPAGE; in dtLog()
1657 if (tlck->type & (tlckENTRY | tlckRELINK)) { in dtLog()
1663 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1666 tlck->flag |= tlckWRITEPAGE; in dtLog()
1677 if (tlck->type & (tlckFREE | tlckRELOCATE)) { in dtLog()
1683 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1690 tlck->flag |= tlckUPDATEMAP; in dtLog()
1701 struct tlock * tlck) in xtLog() argument
1713 ip = tlck->ip; in xtLog()
1714 mp = tlck->mp; in xtLog()
1722 if (tlck->type & tlckBTROOT) { in xtLog()
1732 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1734 maplock = (struct maplock *) & tlck->lock; in xtLog()
1741 if (tlck->type & (tlckNEW | tlckGROW | tlckRELINK)) { in xtLog()
1753 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1770 tlck->flag |= tlckUPDATEMAP; in xtLog()
1802 "count:%d", tlck->ip, mp, tlck, lwm, xadlock->count); in xtLog()
1808 tlck->flag |= tlckWRITEPAGE; in xtLog()
1819 if (tlck->type & tlckFREE) { in xtLog()
1846 if (tlck->type & tlckBTROOT) { in xtLog()
1850 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1860 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1868 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1874 tlck->flag |= tlckUPDATEMAP; in xtLog()
1905 tlck->ip, mp, xadlock->count); in xtLog()
1911 && !(tlck->type & tlckBTROOT)) in xtLog()
1912 tlck->flag |= tlckFREEPAGE; in xtLog()
1930 if (tlck->type & tlckTRUNCATE) { in xtLog()
1964 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1997 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
2006 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2023 tlck->flag |= tlckUPDATEMAP; in xtLog()
2030 tlck->ip, mp, xadlock->count, lwm, next); in xtLog()
2044 tlck->flag |= tlckUPDATEMAP; in xtLog()
2064 tlck->flag |= tlckUPDATEMAP; in xtLog()
2071 tlck->ip, mp, xadlock->count, next, hwm); in xtLog()
2076 tlck->flag |= tlckWRITEPAGE; in xtLog()
2087 struct tlock * tlck) in mapLog() argument
2100 if (tlck->type & tlckRELOCATE) { in mapLog()
2105 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2129 tlck->flag |= tlckUPDATEMAP; in mapLog()
2144 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2163 tlck->flag |= tlckUPDATEMAP; in mapLog()
2175 struct tlock *tlck = NULL; in txEA() local
2187 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2188 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2196 tlck = NULL; in txEA()
2206 if (tlck == NULL) { in txEA()
2207 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2208 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2227 struct tlock *tlck; in txForce() local
2236 tlck = lid_to_tlock(tblk->next); in txForce()
2237 lid = tlck->next; in txForce()
2238 tlck->next = 0; in txForce()
2240 tlck = lid_to_tlock(lid); in txForce()
2241 next = tlck->next; in txForce()
2242 tlck->next = tblk->next; in txForce()
2252 tlck = lid_to_tlock(lid); in txForce()
2253 next = tlck->next; in txForce()
2255 if ((mp = tlck->mp) != NULL && in txForce()
2256 (tlck->type & tlckBTROOT) == 0) { in txForce()
2259 if (tlck->flag & tlckWRITEPAGE) { in txForce()
2260 tlck->flag &= ~tlckWRITEPAGE; in txForce()
2298 struct tlock *tlck; in txUpdateMap() local
2322 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2323 tlck = lid_to_tlock(lid); in txUpdateMap()
2325 if ((tlck->flag & tlckUPDATEMAP) == 0) in txUpdateMap()
2328 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2336 mp = tlck->mp; in txUpdateMap()
2346 maplock = (struct maplock *) & tlck->lock; in txUpdateMap()
2374 if (tlck->flag & tlckDIRECTORY) in txUpdateMap()
2382 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2386 tlck->mp->lid = 0; in txUpdateMap()
2391 tlck->mp = NULL; in txUpdateMap()
2599 struct tlock *xtlck, *tlck; in txFreelock() local
2609 tlck = lid_to_tlock(lid); in txFreelock()
2610 if (tlck->flag & tlckFREELOCK) { in txFreelock()
2611 xtlck->next = tlck->next; in txFreelock()
2614 xtlck = tlck; in txFreelock()
2647 struct tlock *tlck; in txAbort() local
2653 tlck = lid_to_tlock(lid); in txAbort()
2654 next = tlck->next; in txAbort()
2655 mp = tlck->mp; in txAbort()
2656 JFS_IP(tlck->ip)->xtlid = 0; in txAbort()