Lines Matching defs:gen
57 * bit generation embedded in it; for a pointer to be considered valid, its gen
58 * must match the gen of the bucket it points into. Thus, to reuse a bucket all
59 * we have to do is increment its gen (and write its new gen to disk; we batch
81 * generation number. More on the gen later.
101 * gen) or by inserting a key with 0 pointers - which will overwrite anything
116 * bucket's gen for deleting btree nodes when we rewrite/split a node.)
200 uint8_t gen;
201 uint8_t last_gc; /* Most out of date gen in the btree */
438 * their new gen to disk. After prio_write() finishes writing the new
590 * When we free a btree node, we increment the gen of the bucket the
620 * max(gen - last_gc) for all buckets. When it gets too big we have to
835 return gen_after(PTR_BUCKET(c, k, i)->gen, PTR_GEN(k, i));
910 * bucket_gc_gen() returns the difference between the bucket's current gen and
911 * the oldest gen of any pointer into that bucket in the btree (last_gc).
916 return b->gen - b->last_gc;