Lines Matching refs:tlck
166 struct tlock * tlck, struct commit * cd);
168 struct tlock * tlck);
170 struct tlock * tlck);
172 struct tlock * tlck);
181 struct tlock * tlck);
598 struct tlock *tlck; in txLock() local
624 tlck = lid_to_tlock(lid); in txLock()
625 if ((xtid = tlck->tid) == tid) { in txLock()
642 tlck->tid = tid; in txLock()
664 jfs_ip->atlhead = tlck->next; in txLock()
672 lid_to_tlock(last)->next = tlck->next; in txLock()
683 tlck->next = 0; in txLock()
696 tlck = lid_to_tlock(lid); in txLock()
701 tlck->tid = tid; in txLock()
708 tlck->flag = tlckPAGELOCK; in txLock()
714 mp, mp->nohomeok, tid, tlck); in txLock()
726 tlck->flag = tlckINODELOCK; in txLock()
729 tlck->flag |= tlckDIRECTORY; in txLock()
731 tlck->type = 0; in txLock()
734 tlck->ip = ip; in txLock()
735 tlck->mp = mp; in txLock()
751 tlck->next = 0; in txLock()
758 tlck->next = jfs_ip->atlhead; in txLock()
760 if (tlck->next == 0) { in txLock()
771 linelock = (struct linelock *) & tlck->lock; in txLock()
815 jfs_err("UFO tlock:0x%p", tlck); in txLock()
822 tlck->type |= type; in txLock()
824 return tlck; in txLock()
842 tlck, sizeof(*tlck), 0); in txLock()
849 xtid = tlck->tid; /* reacquire after dropping TXN_LOCK */ in txLock()
855 if (xtid && (tlck->mp == mp) && (mp->lid == lid)) in txLock()
881 struct tlock *tlck; in txRelease() local
885 for (lid = tblk->next; lid; lid = tlck->next) { in txRelease()
886 tlck = lid_to_tlock(lid); in txRelease()
887 if ((mp = tlck->mp) != NULL && in txRelease()
888 (tlck->type & tlckBTROOT) == 0) { in txRelease()
911 struct tlock *tlck; in txUnlock() local
926 tlck = lid_to_tlock(lid); in txUnlock()
927 next = tlck->next; in txUnlock()
929 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck); in txUnlock()
932 if ((mp = tlck->mp) != NULL && in txUnlock()
933 (tlck->type & tlckBTROOT) == 0) { in txUnlock()
954 assert(!(tlck->flag & tlckFREEPAGE)); in txUnlock()
964 llid = ((struct linelock *) & tlck->lock)->next; in txUnlock()
1001 struct tlock *tlck; in txMaplock() local
1010 tlck = lid_to_tlock(lid); in txMaplock()
1015 tlck->tid = tid; in txMaplock()
1018 tlck->flag = tlckINODELOCK; in txMaplock()
1020 tlck->flag |= tlckDIRECTORY; in txMaplock()
1021 tlck->ip = ip; in txMaplock()
1022 tlck->mp = NULL; in txMaplock()
1024 tlck->type = type; in txMaplock()
1036 tlck->next = 0; in txMaplock()
1043 tlck->next = jfs_ip->atlhead; in txMaplock()
1045 if (tlck->next == 0) { in txMaplock()
1056 maplock = (struct maplock *) & tlck->lock; in txMaplock()
1061 return tlck; in txMaplock()
1072 struct tlock *tlck; in txLinelock() local
1079 tlck = lid_to_tlock(lid); in txLinelock()
1084 linelock = (struct linelock *) tlck; in txLinelock()
1089 if (tlck->flag & tlckDIRECTORY) in txLinelock()
1387 struct tlock *tlck; in txLog() local
1393 for (lid = tblk->next; lid; lid = tlck->next) { in txLog()
1394 tlck = lid_to_tlock(lid); in txLog()
1396 tlck->flag |= tlckLOG; in txLog()
1399 ip = tlck->ip; in txLog()
1405 switch (tlck->type & tlckTYPE) { in txLog()
1407 xtLog(log, tblk, lrd, tlck); in txLog()
1411 dtLog(log, tblk, lrd, tlck); in txLog()
1415 diLog(log, tblk, lrd, tlck, cd); in txLog()
1419 mapLog(log, tblk, lrd, tlck); in txLog()
1423 dataLog(log, tblk, lrd, tlck); in txLog()
1427 jfs_err("UFO tlock:0x%p", tlck); in txLog()
1440 struct tlock * tlck, struct commit * cd) in diLog() argument
1447 mp = tlck->mp; in diLog()
1458 if (tlck->type & tlckENTRY) { in diLog()
1464 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in diLog()
1467 tlck->flag |= tlckWRITEPAGE; in diLog()
1468 } else if (tlck->type & tlckFREE) { in diLog()
1499 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1504 tlck->flag |= tlckUPDATEMAP; in diLog()
1507 tlck->flag |= tlckWRITEPAGE; in diLog()
1509 jfs_err("diLog: UFO type tlck:0x%p", tlck); in diLog()
1518 assert(tlck->type & tlckEA); in diLog()
1524 pxdlock = (struct pxd_lock *) & tlck->lock; in diLog()
1540 tlck->flag |= tlckUPDATEMAP; in diLog()
1553 struct tlock * tlck) in dataLog() argument
1558 mp = tlck->mp; in dataLog()
1569 if (jfs_dirtable_inline(tlck->ip)) { in dataLog()
1578 tlck->mp = NULL; in dataLog()
1585 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dataLog()
1588 tlck->flag |= tlckWRITEPAGE; in dataLog()
1599 struct tlock * tlck) in dtLog() argument
1605 mp = tlck->mp; in dtLog()
1613 if (tlck->type & tlckBTROOT) in dtLog()
1622 if (tlck->type & (tlckNEW | tlckEXTEND)) { in dtLog()
1628 if (tlck->type & tlckEXTEND) in dtLog()
1635 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1640 if (tlck->type & tlckBTROOT) in dtLog()
1642 tlck->flag |= tlckUPDATEMAP; in dtLog()
1643 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1650 tlck->flag |= tlckWRITEPAGE; in dtLog()
1658 if (tlck->type & (tlckENTRY | tlckRELINK)) { in dtLog()
1664 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in dtLog()
1667 tlck->flag |= tlckWRITEPAGE; in dtLog()
1678 if (tlck->type & (tlckFREE | tlckRELOCATE)) { in dtLog()
1684 pxdlock = (struct pxd_lock *) & tlck->lock; in dtLog()
1691 tlck->flag |= tlckUPDATEMAP; in dtLog()
1702 struct tlock * tlck) in xtLog() argument
1714 ip = tlck->ip; in xtLog()
1715 mp = tlck->mp; in xtLog()
1723 if (tlck->type & tlckBTROOT) { in xtLog()
1733 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1735 maplock = (struct maplock *) & tlck->lock; in xtLog()
1742 if (tlck->type & (tlckNEW | tlckGROW | tlckRELINK)) { in xtLog()
1754 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1771 tlck->flag |= tlckUPDATEMAP; in xtLog()
1803 "count:%d", tlck->ip, mp, tlck, lwm, xadlock->count); in xtLog()
1809 tlck->flag |= tlckWRITEPAGE; in xtLog()
1820 if (tlck->type & tlckFREE) { in xtLog()
1847 if (tlck->type & tlckBTROOT) { in xtLog()
1851 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1861 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
1869 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1875 tlck->flag |= tlckUPDATEMAP; in xtLog()
1906 tlck->ip, mp, xadlock->count); in xtLog()
1912 && !(tlck->type & tlckBTROOT)) in xtLog()
1913 tlck->flag |= tlckFREEPAGE; in xtLog()
1931 if (tlck->type & tlckTRUNCATE) { in xtLog()
1965 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
1998 xtlck = (struct xtlock *) & tlck->lock; in xtLog()
2007 cpu_to_le32(lmLog(log, tblk, lrd, tlck)); in xtLog()
2024 tlck->flag |= tlckUPDATEMAP; in xtLog()
2031 tlck->ip, mp, xadlock->count, lwm, next); in xtLog()
2045 tlck->flag |= tlckUPDATEMAP; in xtLog()
2065 tlck->flag |= tlckUPDATEMAP; in xtLog()
2072 tlck->ip, mp, xadlock->count, next, hwm); in xtLog()
2077 tlck->flag |= tlckWRITEPAGE; in xtLog()
2088 struct tlock * tlck) in mapLog() argument
2101 if (tlck->type & tlckRELOCATE) { in mapLog()
2106 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2130 tlck->flag |= tlckUPDATEMAP; in mapLog()
2145 pxdlock = (struct pxd_lock *) & tlck->lock; in mapLog()
2164 tlck->flag |= tlckUPDATEMAP; in mapLog()
2176 struct tlock *tlck = NULL; in txEA() local
2188 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2189 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2197 tlck = NULL; in txEA()
2207 if (tlck == NULL) { in txEA()
2208 tlck = txMaplock(tid, ip, tlckMAP); in txEA()
2209 maplock = (struct pxd_lock *) & tlck->lock; in txEA()
2228 struct tlock *tlck; in txForce() local
2237 tlck = lid_to_tlock(tblk->next); in txForce()
2238 lid = tlck->next; in txForce()
2239 tlck->next = 0; in txForce()
2241 tlck = lid_to_tlock(lid); in txForce()
2242 next = tlck->next; in txForce()
2243 tlck->next = tblk->next; in txForce()
2253 tlck = lid_to_tlock(lid); in txForce()
2254 next = tlck->next; in txForce()
2256 if ((mp = tlck->mp) != NULL && in txForce()
2257 (tlck->type & tlckBTROOT) == 0) { in txForce()
2260 if (tlck->flag & tlckWRITEPAGE) { in txForce()
2261 tlck->flag &= ~tlckWRITEPAGE; in txForce()
2299 struct tlock *tlck; in txUpdateMap() local
2323 for (lid = tblk->next; lid; lid = tlck->next) { in txUpdateMap()
2324 tlck = lid_to_tlock(lid); in txUpdateMap()
2326 if ((tlck->flag & tlckUPDATEMAP) == 0) in txUpdateMap()
2329 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2337 mp = tlck->mp; in txUpdateMap()
2347 maplock = (struct maplock *) & tlck->lock; in txUpdateMap()
2375 if (tlck->flag & tlckDIRECTORY) in txUpdateMap()
2383 if (tlck->flag & tlckFREEPAGE) { in txUpdateMap()
2387 tlck->mp->lid = 0; in txUpdateMap()
2392 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()