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)
1378 struct tlock *tlck;
1384 for (lid = tblk->next; lid; lid = tlck->next) {
1385 tlck = lid_to_tlock(lid);
1387 tlck->flag |= tlckLOG;
1390 ip = tlck->ip;
1396 switch (tlck->type & tlckTYPE) {
1398 xtLog(log, tblk, lrd, tlck);
1402 dtLog(log, tblk, lrd, tlck);
1406 diLog(log, tblk, lrd, tlck, cd);
1410 mapLog(log, tblk, lrd, tlck);
1414 dataLog(log, tblk, lrd, tlck);
1418 jfs_err("UFO tlock:0x%p", tlck);
1431 struct tlock * tlck, struct commit * cd)
1438 mp = tlck->mp;
1449 if (tlck->type & tlckENTRY) {
1455 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1458 tlck->flag |= tlckWRITEPAGE;
1459 } else if (tlck->type & tlckFREE) {
1490 pxdlock = (struct pxd_lock *) & tlck->lock;
1495 tlck->flag |= tlckUPDATEMAP;
1498 tlck->flag |= tlckWRITEPAGE;
1500 jfs_err("diLog: UFO type tlck:0x%p", tlck);
1509 assert(tlck->type & tlckEA);
1515 pxdlock = (struct pxd_lock *) & tlck->lock;
1531 tlck->flag |= tlckUPDATEMAP;
1544 struct tlock * tlck)
1549 mp = tlck->mp;
1560 if (jfs_dirtable_inline(tlck->ip)) {
1569 tlck->mp = NULL;
1576 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1579 tlck->flag |= tlckWRITEPAGE;
1590 struct tlock * tlck)
1596 mp = tlck->mp;
1604 if (tlck->type & tlckBTROOT)
1613 if (tlck->type & (tlckNEW | tlckEXTEND)) {
1619 if (tlck->type & tlckEXTEND)
1626 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1631 if (tlck->type & tlckBTROOT)
1633 tlck->flag |= tlckUPDATEMAP;
1634 pxdlock = (struct pxd_lock *) & tlck->lock;
1641 tlck->flag |= tlckWRITEPAGE;
1649 if (tlck->type & (tlckENTRY | tlckRELINK)) {
1655 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1658 tlck->flag |= tlckWRITEPAGE;
1669 if (tlck->type & (tlckFREE | tlckRELOCATE)) {
1675 pxdlock = (struct pxd_lock *) & tlck->lock;
1682 tlck->flag |= tlckUPDATEMAP;
1693 struct tlock * tlck)
1705 ip = tlck->ip;
1706 mp = tlck->mp;
1714 if (tlck->type & tlckBTROOT) {
1724 xtlck = (struct xtlock *) & tlck->lock;
1726 maplock = (struct maplock *) & tlck->lock;
1733 if (tlck->type & (tlckNEW | tlckGROW | tlckRELINK)) {
1745 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1762 tlck->flag |= tlckUPDATEMAP;
1793 jfs_info("xtLog: alloc ip:0x%p mp:0x%p tlck:0x%p lwm:%d count:%d",
1794 tlck->ip, mp, tlck, lwm, xadlock->count);
1800 tlck->flag |= tlckWRITEPAGE;
1811 if (tlck->type & tlckFREE) {
1838 if (tlck->type & tlckBTROOT) {
1842 cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1852 xtlck = (struct xtlock *) & tlck->lock;
1860 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1866 tlck->flag |= tlckUPDATEMAP;
1897 tlck->ip, mp, xadlock->count);
1903 && !(tlck->type & tlckBTROOT))
1904 tlck->flag |= tlckFREEPAGE;
1922 if (tlck->type & tlckTRUNCATE) {
1955 lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck));
1988 xtlck = (struct xtlock *) & tlck->lock;
1997 cpu_to_le32(lmLog(log, tblk, lrd, tlck));
2014 tlck->flag |= tlckUPDATEMAP;
2020 tlck->ip, mp, xadlock->count, lwm, next);
2034 tlck->flag |= tlckUPDATEMAP;
2054 tlck->flag |= tlckUPDATEMAP;
2060 tlck->ip, mp, xadlock->count, next, hwm);
2065 tlck->flag |= tlckWRITEPAGE;
2076 struct tlock * tlck)
2089 if (tlck->type & tlckRELOCATE) {
2094 pxdlock = (struct pxd_lock *) & tlck->lock;
2118 tlck->flag |= tlckUPDATEMAP;
2133 pxdlock = (struct pxd_lock *) & tlck->lock;
2152 tlck->flag |= tlckUPDATEMAP;
2164 struct tlock *tlck = NULL;
2176 tlck = txMaplock(tid, ip, tlckMAP);
2177 maplock = (struct pxd_lock *) & tlck->lock;
2185 tlck = NULL;
2195 if (tlck == NULL) {
2196 tlck = txMaplock(tid, ip, tlckMAP);
2197 maplock = (struct pxd_lock *) & tlck->lock;
2216 struct tlock *tlck;
2225 tlck = lid_to_tlock(tblk->next);
2226 lid = tlck->next;
2227 tlck->next = 0;
2229 tlck = lid_to_tlock(lid);
2230 next = tlck->next;
2231 tlck->next = tblk->next;
2241 tlck = lid_to_tlock(lid);
2242 next = tlck->next;
2244 if ((mp = tlck->mp) != NULL &&
2245 (tlck->type & tlckBTROOT) == 0) {
2248 if (tlck->flag & tlckWRITEPAGE) {
2249 tlck->flag &= ~tlckWRITEPAGE;
2287 struct tlock *tlck;
2311 for (lid = tblk->next; lid; lid = tlck->next) {
2312 tlck = lid_to_tlock(lid);
2314 if ((tlck->flag & tlckUPDATEMAP) == 0)
2317 if (tlck->flag & tlckFREEPAGE) {
2325 mp = tlck->mp;
2335 maplock = (struct maplock *) & tlck->lock;
2363 if (tlck->flag & tlckDIRECTORY)
2371 if (tlck->flag & tlckFREEPAGE) {
2375 tlck->mp->lid = 0;
2380 tlck->mp = NULL;
2587 struct tlock *xtlck, *tlck;
2597 tlck = lid_to_tlock(lid);
2598 if (tlck->flag & tlckFREELOCK) {
2599 xtlck->next = tlck->next;
2602 xtlck = tlck;
2635 struct tlock *tlck;
2641 tlck = lid_to_tlock(lid);
2642 next = tlck->next;
2643 mp = tlck->mp;
2644 JFS_IP(tlck->ip)->xtlid = 0;