• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/db/

Lines Matching refs:meta

64  * a meta-data page (used instead of P_INIT).  We need to make sure that we
74 DBMETA *meta;
77 meta = (DBMETA *)p;
78 save_lsn = meta->lsn;
79 memset(meta, 0, sizeof(DBMETA));
80 meta->lsn = save_lsn;
81 meta->pagesize = dbp->pgsize;
83 FLD_SET(meta->metaflags, DBMETA_CHKSUM);
84 meta->pgno = pgno;
85 meta->type = (u_int8_t)pgtype;
101 DBMETA *meta;
110 meta = NULL;
122 DB_MPOOL_DIRTY, &meta)) != 0)
124 last = meta->last_pgno;
125 if (meta->free == PGNO_INVALID) {
130 last = pgno = meta->last_pgno + 1;
134 pgno = meta->free;
141 * then set meta->free to the that page's next_pgno, but
166 if ((ret = __db_pg_alloc_log(dbp, dbc->txn, &LSN(meta), 0,
167 &LSN(meta), PGNO_BASE_MD, &lsn,
168 pgno, (u_int32_t)type, newnext, meta->last_pgno)) != 0)
171 LSN_NOT_LOGGED(LSN(meta));
173 meta->free = newnext;
180 meta->last_pgno = pgno;
184 LSN(h) = LSN(meta);
186 ret = __memp_fput(mpf, dbc->thread_info, meta, dbc->priority);
187 meta = NULL;
244 if (meta != NULL)
245 (void)__memp_fput(mpf, dbc->thread_info, meta, dbc->priority);
262 DBMETA *meta;
280 meta = NULL;
303 /* If we support truncate, we might not dirty the meta page. */
310 &meta)) != 0)
313 last_pgno = meta->last_pgno;
314 next_pgno = meta->free;
319 lsnp = &LSN(meta);
328 * meta page and get the previous page.
370 last_pgno = meta->last_pgno;
376 &meta, dbc->thread_info, dbc->txn, dbc->priority, 0)) != 0)
378 lsnp = &LSN(meta);
457 meta->last_pgno--;
459 dbc, meta, h, list, start, nelem);
475 DB_ASSERT(dbp->env, meta->pgno == PGNO_BASE_MD);
476 meta->last_pgno--;
495 meta->free = h->pgno;
501 err1: if (meta != NULL && (t_ret = __memp_fput(mpf,
502 dbc->thread_info, (PAGE *)meta, dbc->priority)) != 0 && ret == 0)
506 if (prev != (PAGE*) meta && prev != NULL && (t_ret = __memp_fput(mpf,
700 DBMETA *meta;
715 meta = NULL;
734 &meta)) != 0)
738 *last_pgnop = meta->last_pgno;
739 if ((pgno = meta->free) == PGNO_INVALID)
770 &meta, dbc->thread_info, dbc->txn, dbc->priority, 0)) != 0)
779 dbc->txn, &LSN(meta), DB_FLUSH, PGNO_BASE_MD, &LSN(meta),
780 PGNO_INVALID, &null_lsn, meta->last_pgno, &ddbt)) != 0)
783 LSN_NOT_LOGGED(LSN(meta));
786 &nelems, &meta->last_pgno, &LSN(meta), 0)) != 0)
790 meta->free = PGNO_INVALID;
792 meta->free = list[0].pgno;
795 *last_pgnop = meta->last_pgno;
803 c_data->compact_truncate = (u_int32_t)meta->last_pgno - nelems;
813 if (meta != NULL && (t_ret = __memp_fput(mpf,
814 dbc->thread_info, (PAGE *)meta, dbc->priority)) != 0 && ret == 0)
824 __db_truncate_freelist(dbc, meta, h, list, start, nelem)
826 DBMETA *meta;
871 if ((ret = __db_pg_sort_log(dbp, dbc->txn, &LSN(meta),
872 DB_FLUSH, PGNO(meta), &LSN(meta), PGNO(last_free),
873 &LSN(last_free), meta->last_pgno, &ddbt)) != 0)
876 &LSN(meta), DB_FLUSH, PGNO(meta), &LSN(meta),
877 PGNO_INVALID, &null_lsn, meta->last_pgno, &ddbt)) != 0)
880 LSN_NOT_LOGGED(LSN(meta));
882 LSN(last_free) = LSN(meta);
891 meta->last_pgno = list[start] - 1;
894 meta->free = PGNO_INVALID;