Lines Matching defs:tlck

152 		struct tlock *tlck, struct commit *cd);
154 struct tlock *tlck);
156 struct tlock * tlck);
158 struct tlock * tlck);
167 struct tlock * tlck);
589 struct tlock *tlck;
615 tlck = lid_to_tlock(lid);
616 if ((xtid = tlck->tid) == tid) {
633 tlck->tid = tid;
655 jfs_ip->atlhead = tlck->next;
663 lid_to_tlock(last)->next = tlck->next;
674 tlck->next = 0;
687 tlck = lid_to_tlock(lid);
692 tlck->tid = tid;
699 tlck->flag = tlckPAGELOCK;
704 jfs_info("locking mp = 0x%p, nohomeok = %d tid = %d tlck = 0x%p",
705 mp, mp->nohomeok, tid, tlck);
717 tlck->flag = tlckINODELOCK;
720 tlck->flag |= tlckDIRECTORY;
722 tlck->type = 0;
725 tlck->ip = ip;
726 tlck->mp = mp;
742 tlck->next = 0;
749 tlck->next = jfs_ip->atlhead;
751 if (tlck->next == 0) {
762 linelock = (struct linelock *) & tlck->lock;
806 jfs_err("UFO tlock:0x%p", tlck);
813 tlck->type |= type;
815 return tlck;
833 tlck, sizeof(*tlck), 0);
840 xtid = tlck->tid; /* reacquire after dropping TXN_LOCK */
846 if (xtid && (tlck->mp == mp) && (mp->lid == lid))
872 struct tlock *tlck;
876 for (lid = tblk->next; lid; lid = tlck->next) {
877 tlck = lid_to_tlock(lid);
878 if ((mp = tlck->mp) != NULL &&
879 (tlck->type & tlckBTROOT) == 0) {
902 struct tlock *tlck;
917 tlck = lid_to_tlock(lid);
918 next = tlck->next;
920 jfs_info("unlocking lid = %d, tlck = 0x%p", lid, tlck);
923 if ((mp = tlck->mp) != NULL &&
924 (tlck->type & tlckBTROOT) == 0) {
945 assert(!(tlck->flag & tlckFREEPAGE));
955 llid = ((struct linelock *) & tlck->lock)->next;
992 struct tlock *tlck;
1001 tlck = lid_to_tlock(lid);
1006 tlck->tid = tid;
1009 tlck->flag = tlckINODELOCK;
1011 tlck->flag |= tlckDIRECTORY;
1012 tlck->ip = ip;
1013 tlck->mp = NULL;
1015 tlck->type = type;
1027 tlck->next = 0;
1034 tlck->next = jfs_ip->atlhead;
1036 if (tlck->next == 0) {
1047 maplock = (struct maplock *) & tlck->lock;
1052 return tlck;
1063 struct tlock *tlck;
1070 tlck = lid_to_tlock(lid);
1075 linelock = (struct linelock *) tlck;
1080 if (tlck->flag & tlckDIRECTORY)
1376 struct tlock *tlck;
1382 for (lid = tblk->next; lid; lid = tlck->next) {
1383 tlck = lid_to_tlock(lid);
1385 tlck->flag |= tlckLOG;
1388 ip = tlck->ip;
1394 switch (tlck->type & tlckTYPE) {
1396 xtLog(log, tblk, lrd, tlck);
1400 dtLog(log, tblk, lrd, tlck);
1404 diLog(log, tblk, lrd, tlck, cd);
1408 mapLog(log, tblk, lrd, tlck);
1412 dataLog(log, tblk, lrd, tlck);
1416 jfs_err("UFO tlock:0x%p", tlck);
1429 struct tlock *tlck, struct commit *cd)
1435 mp = tlck->mp;
1446 if (tlck->type & tlckENTRY) {
1452 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1455 tlck->flag |= tlckWRITEPAGE;
1456 } else if (tlck->type & tlckFREE) {
1487 pxdlock = (struct pxd_lock *) & tlck->lock;
1492 tlck->flag |= tlckUPDATEMAP;
1495 tlck->flag |= tlckWRITEPAGE;
1497 jfs_err("diLog: UFO type tlck:0x%p", tlck);
1507 struct tlock *tlck)
1512 mp = tlck->mp;
1523 if (jfs_dirtable_inline(tlck->ip)) {
1532 tlck->mp = NULL;
1539 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1542 tlck->flag |= tlckWRITEPAGE;
1553 struct tlock * tlck)
1559 mp = tlck->mp;
1567 if (tlck->type & tlckBTROOT)
1576 if (tlck->type & (tlckNEW | tlckEXTEND)) {
1582 if (tlck->type & tlckEXTEND)
1589 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1594 if (tlck->type & tlckBTROOT)
1596 tlck->flag |= tlckUPDATEMAP;
1597 pxdlock = (struct pxd_lock *) & tlck->lock;
1604 tlck->flag |= tlckWRITEPAGE;
1612 if (tlck->type & (tlckENTRY | tlckRELINK)) {
1618 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1621 tlck->flag |= tlckWRITEPAGE;
1632 if (tlck->type & (tlckFREE | tlckRELOCATE)) {
1638 pxdlock = (struct pxd_lock *) & tlck->lock;
1645 tlck->flag |= tlckUPDATEMAP;
1656 struct tlock * tlck)
1668 ip = tlck->ip;
1669 mp = tlck->mp;
1677 if (tlck->type & tlckBTROOT) {
1687 xtlck = (struct xtlock *) & tlck->lock;
1689 maplock = (struct maplock *) & tlck->lock;
1696 if (tlck->type & (tlckNEW | tlckGROW | tlckRELINK)) {
1708 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1725 tlck->flag |= tlckUPDATEMAP;
1756 jfs_info("xtLog: alloc ip:0x%p mp:0x%p tlck:0x%p lwm:%d count:%d",
1757 tlck->ip, mp, tlck, lwm, xadlock->count);
1763 tlck->flag |= tlckWRITEPAGE;
1774 if (tlck->type & tlckFREE) {
1801 if (tlck->type & tlckBTROOT) {
1805 cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1815 xtlck = (struct xtlock *) & tlck->lock;
1823 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1829 tlck->flag |= tlckUPDATEMAP;
1860 tlck->ip, mp, xadlock->count);
1866 && !(tlck->type & tlckBTROOT))
1867 tlck->flag |= tlckFREEPAGE;
1885 if (tlck->type & tlckTRUNCATE) {
1918 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1951 xtlck = (struct xtlock *) & tlck->lock;
1960 cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1977 tlck->flag |= tlckUPDATEMAP;
1983 tlck->ip, mp, xadlock->count, lwm, next);
1997 tlck->flag |= tlckUPDATEMAP;
2017 tlck->flag |= tlckUPDATEMAP;
2023 tlck->ip, mp, xadlock->count, next, hwm);
2028 tlck->flag |= tlckWRITEPAGE;
2039 struct tlock * tlck)
2052 if (tlck->type & tlckRELOCATE) {
2057 pxdlock = (struct pxd_lock *) & tlck->lock;
2081 tlck->flag |= tlckUPDATEMAP;
2096 pxdlock = (struct pxd_lock *) & tlck->lock;
2115 tlck->flag |= tlckUPDATEMAP;
2127 struct tlock *tlck = NULL;
2139 tlck = txMaplock(tid, ip, tlckMAP);
2140 maplock = (struct pxd_lock *) & tlck->lock;
2148 tlck = NULL;
2158 if (tlck == NULL) {
2159 tlck = txMaplock(tid, ip, tlckMAP);
2160 maplock = (struct pxd_lock *) & tlck->lock;
2179 struct tlock *tlck;
2188 tlck = lid_to_tlock(tblk->next);
2189 lid = tlck->next;
2190 tlck->next = 0;
2192 tlck = lid_to_tlock(lid);
2193 next = tlck->next;
2194 tlck->next = tblk->next;
2204 tlck = lid_to_tlock(lid);
2205 next = tlck->next;
2207 if ((mp = tlck->mp) != NULL &&
2208 (tlck->type & tlckBTROOT) == 0) {
2211 if (tlck->flag & tlckWRITEPAGE) {
2212 tlck->flag &= ~tlckWRITEPAGE;
2250 struct tlock *tlck;
2274 for (lid = tblk->next; lid; lid = tlck->next) {
2275 tlck = lid_to_tlock(lid);
2277 if ((tlck->flag & tlckUPDATEMAP) == 0)
2280 if (tlck->flag & tlckFREEPAGE) {
2288 mp = tlck->mp;
2298 maplock = (struct maplock *) & tlck->lock;
2326 if (tlck->flag & tlckDIRECTORY)
2334 if (tlck->flag & tlckFREEPAGE) {
2338 tlck->mp->lid = 0;
2343 tlck->mp = NULL;
2550 struct tlock *xtlck, *tlck;
2560 tlck = lid_to_tlock(lid);
2561 if (tlck->flag & tlckFREELOCK) {
2562 xtlck->next = tlck->next;
2565 xtlck = tlck;
2598 struct tlock *tlck;
2604 tlck = lid_to_tlock(lid);
2605 next = tlck->next;
2606 mp = tlck->mp;
2607 JFS_IP(tlck->ip)->xtlid = 0;