Home
last modified time | relevance | path

Searched refs:bt_mp (Results 1 – 21 of 21) sorted by relevance

/freebsd/lib/libc/db/btree/
H A Dbt_delete.c68 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_delete()
91 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) in __bt_delete()
108 mpool_put(t->bt_mp, in __bt_delete()
151 mpool_put(t->bt_mp, h, 0); in __bt_stkacq()
169 mpool_put(t->bt_mp, h, 0); in __bt_stkacq()
174 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) in __bt_stkacq()
183 mpool_put(t->bt_mp, h, 0); in __bt_stkacq()
194 mpool_put(t->bt_mp, h, 0); in __bt_stkacq()
197 if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL) in __bt_stkacq()
201 mpool_put(t->bt_mp, h, 0); in __bt_stkacq()
[all …]
H A Dbt_seq.c81 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_seq()
119 mpool_put(t->bt_mp, e.page, 0); in __bt_seq()
169 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in __bt_seqset()
174 mpool_put(t->bt_mp, h, 0); in __bt_seqset()
181 mpool_put(t->bt_mp, h, 0); in __bt_seqset()
190 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in __bt_seqset()
195 mpool_put(t->bt_mp, h, 0); in __bt_seqset()
202 mpool_put(t->bt_mp, h, 0); in __bt_seqset()
253 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) in __bt_seqadv()
272 mpool_put(t->bt_mp, in __bt_seqadv()
[all...]
H A Dbt_search.c69 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in __bt_search()
124 mpool_put(t->bt_mp, h, 0); in __bt_search()
150 if ((e.page = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) in __bt_snext()
154 mpool_put(t->bt_mp, h, 0); in __bt_snext()
159 mpool_put(t->bt_mp, e.page, 0); in __bt_snext()
185 if ((e.page = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL) in __bt_sprev()
189 mpool_put(t->bt_mp, h, 0); in __bt_sprev()
194 mpool_put(t->bt_mp, e.page, 0); in __bt_sprev()
H A Dbt_overflow.c103 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in __ovfl_get()
108 mpool_put(t->bt_mp, h, 0); in __ovfl_get()
156 mpool_put(t->bt_mp, last, MPOOL_DIRTY); in __ovfl_put()
161 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __ovfl_put()
193 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in __ovfl_delete()
198 mpool_put(t->bt_mp, h, 0); in __ovfl_delete()
208 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in __ovfl_delete()
H A Dbt_close.c69 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_close()
78 if (mpool_close(t->bt_mp) == RET_ERROR) in __bt_close()
123 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_sync()
140 if ((status = mpool_sync(t->bt_mp)) == RET_SUCCESS) in __bt_sync()
161 if ((p = mpool_get(t->bt_mp, P_META, 0)) == NULL) in bt_meta()
173 mpool_put(t->bt_mp, p, MPOOL_DIRTY); in bt_meta()
H A Dbt_open.c296 if ((t->bt_mp = in __bt_open()
300 mpool_filter(t->bt_mp, __bt_pgin, __bt_pgout, t); in __bt_open()
349 if ((root = mpool_get(t->bt_mp, 1, 0)) != NULL) { in nroot()
353 mpool_delete(t->bt_mp, root); in nroot()
356 mpool_put(t->bt_mp, root, 0); in nroot()
364 if ((meta = mpool_new(t->bt_mp, &npg, MPOOL_PAGE_NEXT)) == NULL) in nroot()
367 if ((root = mpool_new(t->bt_mp, &npg, MPOOL_PAGE_NEXT)) == NULL) in nroot()
378 mpool_put(t->bt_mp, meta, MPOOL_DIRTY); in nroot()
379 mpool_put(t->bt_mp, root, MPOOL_DIRTY); in nroot()
434 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_fd()
H A Dbt_split.c145 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) in __bt_split()
283 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __bt_split()
293 mpool_put(t->bt_mp, lchild, MPOOL_DIRTY); in __bt_split()
294 mpool_put(t->bt_mp, rchild, MPOOL_DIRTY); in __bt_split()
298 mpool_put(t->bt_mp, l, MPOOL_DIRTY); in __bt_split()
299 mpool_put(t->bt_mp, r, MPOOL_DIRTY); in __bt_split()
309 err1: mpool_put(t->bt_mp, lchild, MPOOL_DIRTY); in __bt_split()
310 mpool_put(t->bt_mp, rchild, MPOOL_DIRTY); in __bt_split()
312 err2: mpool_put(t->bt_mp, l, 0); in __bt_split()
313 mpool_put(t->bt_mp, r, 0); in __bt_split()
[all …]
H A Dbt_page.c63 return (mpool_put(t->bt_mp, h, MPOOL_DIRTY)); in __bt_free()
83 (h = mpool_get(t->bt_mp, t->bt_free, 0)) != NULL) { in __bt_new()
89 return (mpool_new(t->bt_mp, npg, MPOOL_PAGE_NEXT)); in __bt_new()
H A Dbt_put.c77 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_put()
147 if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL) in __bt_put()
173 mpool_put(t->bt_mp, h, 0); in __bt_put()
184 mpool_put(t->bt_mp, h, 0); in __bt_put()
235 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __bt_put()
266 if ((h = mpool_get(t->bt_mp, t->bt_last.pgno, 0)) == NULL) { in bt_fast()
309 mpool_put(t->bt_mp, h, 0); in bt_fast()
H A Dbt_get.c67 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_get()
80 mpool_put(t->bt_mp, e->page, 0); in __bt_get()
91 mpool_put(t->bt_mp, e->page, 0); in __bt_get()
H A Dbt_debug.c83 (h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i) in __bt_dump()
133 if ((h = mpool_get(t->bt_mp, pgno, MPOOL_IGNOREPIN)) != NULL) in __bt_dnpage()
254 (h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i) in __bt_stat()
274 h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN); in __bt_stat()
H A Dbtree.h301 MPOOL *bt_mp; /* memory pool cookie */ member
/freebsd/lib/libc/db/recno/
H A Drec_search.c71 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in __rec_search()
91 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __rec_search()
95 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __rec_search()
98 mpool_put(t->bt_mp, h, 0); in __rec_search()
107 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) in __rec_search()
113 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __rec_search()
H A Drec_open.c190 if ((h = mpool_get(t->bt_mp, P_ROOT, 0)) == NULL) in __rec_open()
195 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __rec_open()
197 mpool_put(t->bt_mp, h, 0); in __rec_open()
224 mpool_put(t->bt_mp, t->bt_pinned, 0); in __rec_fd()
H A Drec_delete.c68 mpool_put(t->bt_mp, t->bt_pinned, 0); in __rec_delete()
125 mpool_put(t->bt_mp, h, 0); in rec_rdelete()
128 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in rec_rdelete()
H A Drec_seq.c66 mpool_put(t->bt_mp, t->bt_pinned, 0); in __rec_seq()
118 mpool_put(t->bt_mp, e->page, 0); in __rec_seq()
H A Drec_put.c67 mpool_put(t->bt_mp, t->bt_pinned, 0); in __rec_put()
237 mpool_put(t->bt_mp, h, 0); in __rec_iput()
267 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in __rec_iput()
H A Drec_close.c65 mpool_put(t->bt_mp, t->bt_pinned, 0); in __rec_close()
116 mpool_put(t->bt_mp, t->bt_pinned, 0); in __rec_sync()
H A Drec_get.c68 mpool_put(t->bt_mp, t->bt_pinned, 0); in __rec_get()
95 mpool_put(t->bt_mp, e->page, 0); in __rec_get()
/freebsd/contrib/netbsd-tests/lib/libc/db/
H A Dh_db.c545 for (pg = P_ROOT; pg < t->bt_mp->npages; in unlinkpg()
546 mpool_put(t->bt_mp, h, 0), pg++) { in unlinkpg()
547 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) in unlinkpg()
558 if (h == NULL || pg == t->bt_mp->npages) { in unlinkpg()
569 mpool_put(t->bt_mp, h, MPOOL_DIRTY); in unlinkpg()
/freebsd/lib/libc/db/test/btree.tests/
H A Dmain.c712 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) {
720 mpool_put(t->bt_mp, h, 0);
738 mpool_stat(((BTREE *)db->internal)->bt_mp);