Lines Matching refs:lid
182 lid_t lid; in txLockAlloc() local
189 while (!(lid = TxAnchor.freelock)) in txLockAlloc()
191 TxAnchor.freelock = TxLock[lid].next; in txLockAlloc()
192 HIGHWATERMARK(stattx.maxlid, lid); in txLockAlloc()
199 return lid; in txLockAlloc()
202 static void txLockFree(lid_t lid) in txLockFree() argument
204 TxLock[lid].tid = 0; in txLockFree()
205 TxLock[lid].next = TxAnchor.freelock; in txLockFree()
206 TxAnchor.freelock = lid; in txLockFree()
582 lid_t lid; in txLock() local
599 lid = jfs_ip->xtlid; in txLock()
601 lid = mp->lid; in txLock()
604 if (lid == 0) in txLock()
607 jfs_info("txLock: tid:%d ip:0x%p mp:0x%p lid:%d", tid, ip, mp, lid); in txLock()
610 tlck = lid_to_tlock(lid); in txLock()
641 if (jfs_ip->atlhead == lid) { in txLock()
642 if (jfs_ip->atltail == lid) { in txLock()
654 lid_to_tlock(last)->next != lid; in txLock()
659 if (jfs_ip->atltail == lid) in txLock()
666 lid_to_tlock(tblk->last)->next = lid; in txLock()
668 tblk->next = lid; in txLock()
670 tblk->last = lid; in txLock()
681 lid = txLockAlloc(); in txLock()
682 tlck = lid_to_tlock(lid); in txLock()
723 jfs_ip->xtlid = lid; in txLock()
725 mp->lid = lid; in txLock()
734 lid_to_tlock(tblk->last)->next = lid; in txLock()
736 tblk->next = lid; in txLock()
738 tblk->last = lid; in txLock()
745 jfs_ip->atlhead = lid; in txLock()
748 jfs_ip->atltail = lid; in txLock()
838 tid, xtid, lid); in txLock()
841 if (xtid && (tlck->mp == mp) && (mp->lid == lid)) in txLock()
845 jfs_info("txLock: awakened tid = %d, lid = %d", tid, lid); in txLock()
866 lid_t lid; in txRelease() local
871 for (lid = tblk->next; lid; lid = tlck->next) { in txRelease()
872 tlck = lid_to_tlock(lid); in txRelease()
876 mp->lid = 0; in txRelease()
899 lid_t lid, next, llid, k; in txUnlock() local
911 for (lid = tblk->next; lid; lid = next) { in txUnlock()
912 tlck = lid_to_tlock(lid); in txUnlock()
915 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck); in txUnlock()
957 txLockFree(lid); in txUnlock()
985 lid_t lid; in txMaplock() local
995 lid = txLockAlloc(); in txMaplock()
996 tlck = lid_to_tlock(lid); in txMaplock()
1019 lid_to_tlock(tblk->last)->next = lid; in txMaplock()
1021 tblk->next = lid; in txMaplock()
1023 tblk->last = lid; in txMaplock()
1030 jfs_ip->atlhead = lid; in txMaplock()
1033 jfs_ip->atltail = lid; in txMaplock()
1057 lid_t lid; in txLinelock() local
1064 lid = txLockAlloc(); in txLinelock()
1065 tlck = lid_to_tlock(lid); in txLinelock()
1080 tlock->next = lid; in txLinelock()
1372 lid_t lid; in txLog() local
1379 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1380 tlck = lid_to_tlock(lid); in txLog()
1560 mp->lid = 0; in dataLog()
2212 lid_t lid, next; in txForce() local
2221 lid = tlck->next; in txForce()
2223 while (lid) { in txForce()
2224 tlck = lid_to_tlock(lid); in txForce()
2227 tblk->next = lid; in txForce()
2228 lid = next; in txForce()
2235 for (lid = tblk->next; lid; lid = next) { in txForce()
2236 tlck = lid_to_tlock(lid); in txForce()
2281 lid_t lid; in txUpdateMap() local
2306 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2307 tlck = lid_to_tlock(lid); in txUpdateMap()
2369 ASSERT(mp->lid == lid); in txUpdateMap()
2370 tlck->mp->lid = 0; in txUpdateMap()
2583 lid_t xlid = 0, lid; in txFreelock() local
2591 while ((lid = xtlck->next) != 0) { in txFreelock()
2592 tlck = lid_to_tlock(lid); in txFreelock()
2595 txLockFree(lid); in txFreelock()
2598 xlid = lid; in txFreelock()
2627 lid_t lid, next; in txAbort() local
2635 for (lid = tblk->next; lid; lid = next) { in txAbort()
2636 tlck = lid_to_tlock(lid); in txAbort()
2642 mp->lid = 0; in txAbort()
2657 txLockFree(lid); in txAbort()