Lines Matching refs:txg
59 list_t tm_head; /* List of segments sorted by txg. */
73 uint64_t ts_txg; /* Segment creation txg. */
204 trim_map_segment_add(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg)
221 trim_map_segment_add(tm, start, ts->ts_start, txg);
223 trim_map_segment_add(tm, ts->ts_end, end, txg);
238 ts_after->ts_txg = txg;
245 ts_before->ts_txg = txg;
251 ts_after->ts_txg = txg;
258 ts->ts_txg = txg;
301 trim_map_free_locked(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg)
312 trim_map_segment_add(tm, start, end, txg);
316 trim_map_free_locked(tm, start, zs->io_offset, txg);
318 trim_map_free_locked(tm, zs->io_offset + zs->io_size, end, txg);
322 trim_map_free(vdev_t *vd, uint64_t offset, uint64_t size, uint64_t txg)
330 trim_map_free_locked(tm, offset, TRIM_ZIO_END(vd, offset, size), txg);
404 * Return the oldest segment (the one with the lowest txg / time) or NULL if:
406 * 2. The first element's txg is greater than txgsafe
407 * 3. The first element's txg is not greater than the txg argument and the
411 trim_map_first(trim_map_t *tm, uint64_t txg, uint64_t txgsafe, hrtime_t time,
417 VERIFY(txgsafe >= txg);
421 (ts->ts_txg <= txg || ts->ts_time <= time || force))