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, in lock_index() argument
298 tlck = txLock(tid, ip, mp, tlckDATA); in lock_index()
321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument
388 xtInitRoot(tid, ip); in add_index()
393 if (xtInsert(tid, ip, 0, 0, sbi->nbperpage, &xaddr, 0)) { in add_index()
407 xtTruncate(tid, ip, 0, COMMIT_PWMAP); in add_index()
412 tlck = txLock(tid, ip, mp, tlckDATA); in add_index()
440 if (xtInsert(tid, ip, 0, blkno, sbi->nbperpage, &xaddr, 0)) { in add_index()
449 xtTruncate(tid, ip, offset, COMMIT_PWMAP); in add_index()
458 lock_index(tid, ip, mp, index); in add_index()
483 static void free_index(tid_t tid, struct inode *ip, u32 index, u32 next) in free_index() argument
499 lock_index(tid, ip, mp, index); in free_index()
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, in modify_index() argument
525 lock_index(tid, ip, *mp, index); in modify_index()
814 int dtInsert(tid_t tid, struct inode *ip, in dtInsert() argument
849 data.leaf.tid = tid; in dtInsert()
870 rc = dtSplitUp(tid, ip, &split, btstack); in dtInsert()
883 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY); in dtInsert()
925 static int dtSplitUp(tid_t tid, in dtSplitUp() argument
992 rc = dtSplitRoot(tid, ip, split, &rmp); in dtSplitUp()
1041 if ((rc = dtExtendPage(tid, ip, split, btstack))) { in dtSplitUp()
1091 if ((rc = dtSplitPage(tid, ip, split, &rmp, &rp, &rpxd))) { in dtSplitUp()
1243 dtSplitRoot(tid, ip, split, &rmp) : in dtSplitUp()
1244 dtSplitPage(tid, ip, split, &rmp, &rp, &rpxd); in dtSplitUp()
1260 tlck = txLock(tid, ip, smp, tlckDTREE | tlckENTRY); in dtSplitUp()
1325 static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split, in dtSplitPage() argument
1379 tlck = txLock(tid, ip, rmp, tlckDTREE | tlckNEW); in dtSplitPage()
1392 tlck = txLock(tid, ip, smp, tlckDTREE | tlckENTRY); in dtSplitPage()
1480 tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK); in dtSplitPage()
1583 modify_index(tid, ip, le32_to_cpu(ldtentry->index), in dtSplitPage()
1637 static int dtExtendPage(tid_t tid, in dtExtendPage() argument
1691 tlck = txMaplock(tid, ip, tlckDTREE | tlckRELOCATE); in dtExtendPage()
1708 modify_index(tid, ip, in dtExtendPage()
1728 tlck = txLock(tid, ip, smp, tlckDTREE | type); in dtExtendPage()
1834 tlck = txLock(tid, ip, pmp, tlckDTREE | tlckENTRY); in dtExtendPage()
1870 static int dtSplitRoot(tid_t tid, in dtSplitRoot() argument
1926 tlck = txLock(tid, ip, rmp, tlckDTREE | tlckNEW); in dtSplitRoot()
1998 modify_index(tid, ip, le32_to_cpu(ldtentry->index), in dtSplitRoot()
2023 tlck = txLock(tid, ip, smp, tlckDTREE | tlckNEW | tlckBTROOT); in dtSplitRoot()
2077 int dtDelete(tid_t tid, in dtDelete() argument
2144 free_index(tid, ip, table_index, next_index); in dtDelete()
2151 rc = dtDeleteUp(tid, ip, mp, p, &btstack); in dtDelete()
2163 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY); in dtDelete()
2207 modify_index(tid, ip, in dtDelete()
2232 static int dtDeleteUp(tid_t tid, struct inode *ip, in dtDeleteUp() argument
2256 dtInitRoot(tid, ip, PARENT(ip)); in dtDeleteUp()
2273 tlck = txMaplock(tid, ip, tlckDTREE | tlckFREE); in dtDeleteUp()
2280 if ((rc = dtRelink(tid, ip, fp))) { in dtDeleteUp()
2332 dtInitRoot(tid, ip, PARENT(ip)); in dtDeleteUp()
2348 txMaplock(tid, ip, in dtDeleteUp()
2356 if ((rc = dtRelink(tid, ip, p))) { in dtDeleteUp()
2385 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY); in dtDeleteUp()
2444 static int dtRelink(tid_t tid, struct inode *ip, dtpage_t * p) in dtRelink() argument
2468 tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK); in dtRelink()
2497 tlck = txLock(tid, ip, mp, tlckDTREE | tlckRELINK); in dtRelink()
2523 void dtInitRoot(tid_t tid, struct inode *ip, u32 idotdot) in dtInitRoot() argument
2540 struct tblock *tblk = tid_to_tblock(tid); in dtInitRoot()
2557 xtTruncate(tid, ip, 0, COMMIT_PWMAP); in dtInitRoot()
2573 tlck = txLock(tid, ip, (struct metapage *) & jfs_ip->bxflag, in dtInitRoot()
2626 tid_t tid; in add_missing_indices() local
2629 tid = txBegin(inode->i_sb, 0); in add_missing_indices()
2641 tlck = txLock(tid, inode, mp, tlckDTREE | tlckENTRY); in add_missing_indices()
2652 d->index = cpu_to_le32(add_index(tid, inode, bn, i)); in add_missing_indices()
2663 (void) txCommit(tid, 1, &inode, 0); in add_missing_indices()
2665 txEnd(tid); in add_missing_indices()
3646 lh->index = cpu_to_le32(add_index(data->leaf.tid, in dtInsertEntry()
3736 modify_index(data->leaf.tid, data->leaf.ip, in dtInsertEntry()
4216 int dtModify(tid_t tid, struct inode *ip, in dtModify() argument
4247 tlck = txLock(tid, ip, mp, tlckDTREE | tlckENTRY); in dtModify()