Lines Matching refs:btstack
140 struct dtsplit * split, struct btstack * btstack);
146 struct dtsplit * split, struct btstack * btstack);
152 dtpage_t * fp, struct btstack * btstack);
156 static int dtReadFirst(struct inode *ip, struct btstack * btstack);
159 loff_t * offset, struct btstack * btstack);
568 struct btstack * btstack, int flag) in dtSearch() argument
600 BT_CLR(btstack); /* reset stack */ in dtSearch()
603 btstack->nsplit = 1; in dtSearch()
697 btsp = btstack->top; in dtSearch()
746 btsp = btstack->top; in dtSearch()
768 if (BT_STACK_FULL(btstack)) { in dtSearch()
773 BT_STACK_DUMP(btstack); in dtSearch()
777 btstack->nsplit++; in dtSearch()
780 BT_PUSH(btstack, bn, index); in dtSearch()
815 struct component_name * name, ino_t * fsn, struct btstack * btstack) in dtInsert() argument
836 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtInsert()
868 rc = dtSplitUp(tid, ip, &split, btstack); in dtInsert()
924 struct inode *ip, struct dtsplit * split, struct btstack * btstack) in dtSplitUp() argument
1039 if ((rc = dtExtendPage(tid, ip, split, btstack))) { in dtSplitUp()
1071 n = btstack->nsplit; in dtSplitUp()
1120 while ((parent = BT_POP(btstack)) != NULL) { in dtSplitUp()
1636 struct inode *ip, struct dtsplit * split, struct btstack * btstack) in dtExtendPage() argument
1665 parent = BT_POP(btstack); in dtExtendPage()
2083 struct btstack btstack; in dtDelete() local
2099 if ((rc = dtSearch(ip, key, ino, &btstack, flag))) in dtDelete()
2103 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtDelete()
2149 rc = dtDeleteUp(tid, ip, mp, p, &btstack); in dtDelete()
2231 struct metapage * fmp, dtpage_t * fp, struct btstack * btstack) in dtDeleteUp() argument
2299 while ((parent = BT_POP(btstack)) != NULL) { in dtDeleteUp()
2446 struct btstack btstack; in dtRelocate() local
2467 rc = dtSearchNode(ip, lmxaddr, opxd, &btstack); in dtRelocate()
2472 DT_GETSEARCH(ip, btstack.top, bn, pmp, pp, index); in dtRelocate()
2636 struct btstack * btstack) in dtSearchNode() argument
2648 BT_CLR(btstack); /* reset stack */ in dtSearchNode()
2700 btsp = btstack->top; in dtSearchNode()
3014 struct btstack btstack; in jfs_readdir() local
3116 if ((rc = dtReadFirst(ip, &btstack))) in jfs_readdir()
3119 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3158 if ((rc = dtReadNext(ip, &ctx->pos, &btstack))) { in jfs_readdir()
3165 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3335 static int dtReadFirst(struct inode *ip, struct btstack * btstack) in dtReadFirst() argument
3346 BT_CLR(btstack); /* reset stack */ in dtReadFirst()
3363 btsp = btstack->top; in dtReadFirst()
3374 if (BT_STACK_FULL(btstack)) { in dtReadFirst()
3377 BT_STACK_DUMP(btstack); in dtReadFirst()
3381 BT_PUSH(btstack, bn, 0); in dtReadFirst()
3408 struct btstack * btstack) in dtReadNext() argument
3428 if ((rc = dtReadFirst(ip, btstack))) in dtReadNext()
3432 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtReadNext()
3488 btsp = btstack->top; in dtReadNext()
3564 btsp = btstack->top; in dtReadNext()
4520 struct btstack btstack; in dtModify() local
4533 if ((rc = dtSearch(ip, key, orig_ino, &btstack, flag))) in dtModify()
4537 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtModify()