Lines Matching refs:tid
139 static int dtSplitUp(tid_t tid, struct inode *ip,
142 static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split,
145 static int dtExtendPage(tid_t tid, struct inode *ip,
148 static int dtSplitRoot(tid_t tid, struct inode *ip,
151 static int dtDeleteUp(tid_t tid, struct inode *ip, struct metapage * fmp,
154 static int dtRelink(tid_t tid, struct inode *ip, dtpage_t * p);
291 static inline void lock_index(tid_t tid, struct inode *ip, struct metapage * mp,
298 tlck = txLock(tid, ip, mp, tlckDATA);
321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
388 xtInitRoot(tid, ip);
393 if (xtInsert(tid, ip, 0, 0, sbi->nbperpage, &xaddr, 0)) {
407 xtTruncate(tid, ip, 0, COMMIT_PWMAP);
412 tlck = txLock(tid, ip, mp, tlckDATA);
440 if (xtInsert(tid, ip, 0, blkno, sbi->nbperpage, &xaddr, 0)) {
449 xtTruncate(tid, ip, offset, COMMIT_PWMAP);
458 lock_index(tid, ip, mp, index);
483 static void free_index(tid_t tid, struct inode *ip, u32 index, u32 next)
499 lock_index(tid, ip, mp, index);
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn,
525 lock_index(tid, ip, *mp, index);
814 int dtInsert(tid_t tid, struct inode *ip,
847 data.leaf.tid = tid;
868 rc = dtSplitUp(tid, ip, &split, btstack);
881 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);
923 static int dtSplitUp(tid_t tid,
990 rc = dtSplitRoot(tid, ip, split, &rmp);
1039 if ((rc = dtExtendPage(tid, ip, split, btstack))) {
1089 if ((rc = dtSplitPage(tid, ip, split, &rmp, &rp, &rpxd))) {
1241 dtSplitRoot(tid, ip, split, &rmp) :
1242 dtSplitPage(tid, ip, split, &rmp, &rp, &rpxd);
1258 tlck = txLock(tid, ip, smp, tlckDTREE | tlckENTRY);
1323 static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split,
1377 tlck = txLock(tid, ip, rmp, tlckDTREE | tlckNEW);
1390 tlck = txLock(tid, ip, smp, tlckDTREE | tlckENTRY);
1478 tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK);
1581 modify_index(tid, ip, le32_to_cpu(ldtentry->index),
1635 static int dtExtendPage(tid_t tid,
1689 tlck = txMaplock(tid, ip, tlckDTREE | tlckRELOCATE);
1706 modify_index(tid, ip,
1726 tlck = txLock(tid, ip, smp, tlckDTREE | type);
1832 tlck = txLock(tid, ip, pmp, tlckDTREE | tlckENTRY);
1868 static int dtSplitRoot(tid_t tid,
1924 tlck = txLock(tid, ip, rmp, tlckDTREE | tlckNEW);
1996 modify_index(tid, ip, le32_to_cpu(ldtentry->index),
2021 tlck = txLock(tid, ip, smp, tlckDTREE | tlckNEW | tlckBTROOT);
2075 int dtDelete(tid_t tid,
2142 free_index(tid, ip, table_index, next_index);
2149 rc = dtDeleteUp(tid, ip, mp, p, &btstack);
2161 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);
2205 modify_index(tid, ip,
2230 static int dtDeleteUp(tid_t tid, struct inode *ip,
2254 dtInitRoot(tid, ip, PARENT(ip));
2271 tlck = txMaplock(tid, ip, tlckDTREE | tlckFREE);
2278 if ((rc = dtRelink(tid, ip, fp))) {
2330 dtInitRoot(tid, ip, PARENT(ip));
2346 txMaplock(tid, ip,
2354 if ((rc = dtRelink(tid, ip, p))) {
2383 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);
2442 static int dtRelink(tid_t tid, struct inode *ip, dtpage_t * p)
2466 tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK);
2495 tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK);
2521 void dtInitRoot(tid_t tid, struct inode *ip, u32 idotdot)
2538 struct tblock *tblk = tid_to_tblock(tid);
2540 * We're playing games with the tid's xflag. If
2555 xtTruncate(tid, ip, 0, COMMIT_PWMAP);
2571 tlck = txLock(tid, ip, (struct metapage *) & jfs_ip->bxflag,
2624 tid_t tid;
2627 tid = txBegin(inode->i_sb, 0);
2639 tlck = txLock(tid, inode, mp, tlckDTREE | tlckENTRY);
2650 d->index = cpu_to_le32(add_index(tid, inode, bn, i));
2661 (void) txCommit(tid, 1, &inode, 0);
2663 txEnd(tid);
3644 lh->index = cpu_to_le32(add_index(data->leaf.tid,
3734 modify_index(data->leaf.tid, data->leaf.ip,
4202 * tid - Transaction id
4214 int dtModify(tid_t tid, struct inode *ip,
4245 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY);