/freebsd/lib/libc/db/btree/ |
H A D | bt_delete.c | 68 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 D | bt_seq.c | 81 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 D | bt_search.c | 69 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 D | bt_overflow.c | 103 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 D | bt_close.c | 69 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 D | bt_open.c | 296 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 D | bt_split.c | 145 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 D | bt_page.c | 63 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 D | bt_put.c | 77 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 D | bt_get.c | 67 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 D | bt_debug.c | 83 (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 D | btree.h | 301 MPOOL *bt_mp; /* memory pool cookie */ member
|
/freebsd/lib/libc/db/recno/ |
H A D | rec_search.c | 71 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 D | rec_open.c | 190 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 D | rec_delete.c | 68 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 D | rec_seq.c | 66 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 D | rec_put.c | 67 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 D | rec_close.c | 65 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 D | rec_get.c | 68 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 D | h_db.c | 545 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 D | main.c | 712 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);
|