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()
587 lid_t lid; in txLock() local
604 lid = jfs_ip->xtlid; in txLock()
606 lid = mp->lid; in txLock()
609 if (lid == 0) in txLock()
612 jfs_info("txLock: tid:%d ip:0x%p mp:0x%p lid:%d", tid, ip, mp, lid); in txLock()
615 tlck = lid_to_tlock(lid); in txLock()
646 if (jfs_ip->atlhead == lid) { in txLock()
647 if (jfs_ip->atltail == lid) { in txLock()
659 lid_to_tlock(last)->next != lid; in txLock()
664 if (jfs_ip->atltail == lid) in txLock()
671 lid_to_tlock(tblk->last)->next = lid; in txLock()
673 tblk->next = lid; in txLock()
675 tblk->last = lid; in txLock()
686 lid = txLockAlloc(); in txLock()
687 tlck = lid_to_tlock(lid); in txLock()
728 jfs_ip->xtlid = lid; in txLock()
730 mp->lid = lid; in txLock()
739 lid_to_tlock(tblk->last)->next = lid; in txLock()
741 tblk->next = lid; in txLock()
743 tblk->last = lid; in txLock()
750 jfs_ip->atlhead = lid; in txLock()
753 jfs_ip->atltail = lid; in txLock()
843 tid, xtid, lid); in txLock()
846 if (xtid && (tlck->mp == mp) && (mp->lid == lid)) in txLock()
850 jfs_info("txLock: awakened tid = %d, lid = %d", tid, lid); in txLock()
871 lid_t lid; in txRelease() local
876 for (lid = tblk->next; lid; lid = tlck->next) { in txRelease()
877 tlck = lid_to_tlock(lid); in txRelease()
881 mp->lid = 0; in txRelease()
904 lid_t lid, next, llid, k; in txUnlock() local
916 for (lid = tblk->next; lid; lid = next) { in txUnlock()
917 tlck = lid_to_tlock(lid); in txUnlock()
920 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck); in txUnlock()
962 txLockFree(lid); in txUnlock()
990 lid_t lid; in txMaplock() local
1000 lid = txLockAlloc(); in txMaplock()
1001 tlck = lid_to_tlock(lid); in txMaplock()
1024 lid_to_tlock(tblk->last)->next = lid; in txMaplock()
1026 tblk->next = lid; in txMaplock()
1028 tblk->last = lid; in txMaplock()
1035 jfs_ip->atlhead = lid; in txMaplock()
1038 jfs_ip->atltail = lid; in txMaplock()
1062 lid_t lid; in txLinelock() local
1069 lid = txLockAlloc(); in txLinelock()
1070 tlck = lid_to_tlock(lid); in txLinelock()
1085 tlock->next = lid; in txLinelock()
1375 lid_t lid; in txLog() local
1382 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1383 tlck = lid_to_tlock(lid); in txLog()
1528 mp->lid = 0; in dataLog()
2180 lid_t lid, next; in txForce() local
2189 lid = tlck->next; in txForce()
2191 while (lid) { in txForce()
2192 tlck = lid_to_tlock(lid); in txForce()
2195 tblk->next = lid; in txForce()
2196 lid = next; in txForce()
2203 for (lid = tblk->next; lid; lid = next) { in txForce()
2204 tlck = lid_to_tlock(lid); in txForce()
2249 lid_t lid; in txUpdateMap() local
2274 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2275 tlck = lid_to_tlock(lid); in txUpdateMap()
2337 ASSERT(mp->lid == lid); in txUpdateMap()
2338 tlck->mp->lid = 0; in txUpdateMap()
2551 lid_t xlid = 0, lid; in txFreelock() local
2559 while ((lid = xtlck->next) != 0) { in txFreelock()
2560 tlck = lid_to_tlock(lid); in txFreelock()
2563 txLockFree(lid); in txFreelock()
2566 xlid = lid; in txFreelock()
2595 lid_t lid, next; in txAbort() local
2603 for (lid = tblk->next; lid; lid = next) { in txAbort()
2604 tlck = lid_to_tlock(lid); in txAbort()
2610 mp->lid = 0; in txAbort()
2625 txLockFree(lid); in txAbort()