34 #if defined(LIBC_SCCS) && !defined(lint)
35 static char sccsid[] =
"@(#)bt_page.c 8.3 (Berkeley) 7/14/94";
38 #include <sys/types.h>
42 #include "../include/db.h"
65 h->prevpg = P_INVALID;
66 h->nextpg = t->bt_free;
68 F_SET(t, B_METADIRTY);
71 return (mpool_put(t->bt_mp, h, MPOOL_DIRTY));
92 if (t->bt_free != P_INVALID &&
93 (h = mpool_get(t->bt_mp, t->bt_free, 0)) != NULL) {
95 t->bt_free = h->nextpg;
96 F_SET(t, B_METADIRTY);
99 return (mpool_new(t->bt_mp, npg));