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()
692 btsp = btstack->top; in dtSearch()
741 btsp = btstack->top; in dtSearch()
763 if (BT_STACK_FULL(btstack)) { in dtSearch()
768 BT_STACK_DUMP(btstack); in dtSearch()
772 btstack->nsplit++; in dtSearch()
775 BT_PUSH(btstack, bn, index); in dtSearch()
810 struct component_name * name, ino_t * fsn, struct btstack * btstack) in dtInsert() argument
831 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtInsert()
863 rc = dtSplitUp(tid, ip, &split, btstack); in dtInsert()
919 struct inode *ip, struct dtsplit * split, struct btstack * btstack) in dtSplitUp() argument
1034 if ((rc = dtExtendPage(tid, ip, split, btstack))) { in dtSplitUp()
1066 n = btstack->nsplit; in dtSplitUp()
1115 while ((parent = BT_POP(btstack)) != NULL) { in dtSplitUp()
1631 struct inode *ip, struct dtsplit * split, struct btstack * btstack) in dtExtendPage() argument
1660 parent = BT_POP(btstack); in dtExtendPage()
2078 struct btstack btstack; in dtDelete() local
2094 if ((rc = dtSearch(ip, key, ino, &btstack, flag))) in dtDelete()
2098 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtDelete()
2144 rc = dtDeleteUp(tid, ip, mp, p, &btstack); in dtDelete()
2226 struct metapage * fmp, dtpage_t * fp, struct btstack * btstack) in dtDeleteUp() argument
2294 while ((parent = BT_POP(btstack)) != NULL) { in dtDeleteUp()
2711 struct btstack btstack; in jfs_readdir() local
2813 if ((rc = dtReadFirst(ip, &btstack))) in jfs_readdir()
2816 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
2855 if ((rc = dtReadNext(ip, &ctx->pos, &btstack))) { in jfs_readdir()
2862 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in jfs_readdir()
3032 static int dtReadFirst(struct inode *ip, struct btstack * btstack) in dtReadFirst() argument
3043 BT_CLR(btstack); /* reset stack */ in dtReadFirst()
3060 btsp = btstack->top; in dtReadFirst()
3071 if (BT_STACK_FULL(btstack)) { in dtReadFirst()
3074 BT_STACK_DUMP(btstack); in dtReadFirst()
3078 BT_PUSH(btstack, bn, 0); in dtReadFirst()
3105 struct btstack * btstack) in dtReadNext() argument
3125 if ((rc = dtReadFirst(ip, btstack))) in dtReadNext()
3129 DT_GETSEARCH(ip, btstack->top, bn, mp, p, index); in dtReadNext()
3185 btsp = btstack->top; in dtReadNext()
3261 btsp = btstack->top; in dtReadNext()
4217 struct btstack btstack; in dtModify() local
4230 if ((rc = dtSearch(ip, key, orig_ino, &btstack, flag))) in dtModify()
4234 DT_GETSEARCH(ip, btstack.top, bn, mp, p, index); in dtModify()