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()
1370 lid_t lid; in txLog() local
1377 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1378 tlck = lid_to_tlock(lid); in txLog()
1523 mp->lid = 0; in dataLog()
2175 lid_t lid, next; in txForce() local
2184 lid = tlck->next; in txForce()
2186 while (lid) { in txForce()
2187 tlck = lid_to_tlock(lid); in txForce()
2190 tblk->next = lid; in txForce()
2191 lid = next; in txForce()
2198 for (lid = tblk->next; lid; lid = next) { in txForce()
2199 tlck = lid_to_tlock(lid); in txForce()
2244 lid_t lid; in txUpdateMap() local
2269 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2270 tlck = lid_to_tlock(lid); in txUpdateMap()
2332 ASSERT(mp->lid == lid); in txUpdateMap()
2333 tlck->mp->lid = 0; in txUpdateMap()
2546 lid_t xlid = 0, lid; in txFreelock() local
2554 while ((lid = xtlck->next) != 0) { in txFreelock()
2555 tlck = lid_to_tlock(lid); in txFreelock()
2558 txLockFree(lid); in txFreelock()
2561 xlid = lid; in txFreelock()
2590 lid_t lid, next; in txAbort() local
2598 for (lid = tblk->next; lid; lid = next) { in txAbort()
2599 tlck = lid_to_tlock(lid); in txAbort()
2605 mp->lid = 0; in txAbort()
2620 txLockFree(lid); in txAbort()