Home
last modified time | relevance | path

Searched refs:bversion (Results 1 – 21 of 21) sorted by relevance

/fs/bcachefs/
A Ddisk_accounting.h42 if (bversion_cmp(dst->k.bversion, src.k->bversion) < 0) in bch2_accounting_accumulate()
43 dst->k.bversion = src.k->bversion; in bch2_accounting_accumulate()
248 static inline struct bversion journal_pos_to_bversion(struct journal_res *res, unsigned offset) in journal_pos_to_bversion()
252 return (struct bversion) { in journal_pos_to_bversion()
263 a->k.bversion = journal_pos_to_bversion(&trans->journal_res, (u64 *) a - base); in bch2_accounting_trans_commit_hook()
265 EBUG_ON(bversion_zero(a->k.bversion)); in bch2_accounting_trans_commit_hook()
A Ddisk_accounting_types.h9 struct bversion bversion; member
A Dbkey.h202 static __always_inline int bversion_cmp(struct bversion l, struct bversion r) in bversion_cmp()
208 #define ZERO_VERSION ((struct bversion) { .hi = 0, .lo = 0 })
209 #define MAX_VERSION ((struct bversion) { .hi = ~0, .lo = ~0ULL })
211 static __always_inline bool bversion_zero(struct bversion v) in bversion_zero()
550 x(BKEY_FIELD_VERSION_HI, bversion.hi) \
551 x(BKEY_FIELD_VERSION_LO, bversion.lo)
A Dbkey_methods.h74 !bversion_cmp(l->bversion, r->bversion) && in bch2_bkey_maybe_mergable()
A Dchecksum.h85 int bch2_rechecksum_bio(struct bch_fs *, struct bio *, struct bversion,
193 static inline struct nonce extent_nonce(struct bversion version, in extent_nonce()
A Dbcachefs_format.h185 struct bversion { struct
220 struct bversion bversion; member
226 struct bversion bversion; member
331 bkey_format_field(VERSION_HI, bversion.hi), \
332 bkey_format_field(VERSION_LO, bversion.lo), \
A Ddisk_accounting.c188 bversion_zero(k.k->bversion), in bch2_accounting_validate()
360 .bversion = a.k->bversion, in __bch2_accounting_mem_insert()
821 bversion_cmp(acc->k.data[idx].bversion, k.k->bversion) >= 0; in bch2_accounting_read()
829 WARN_ON(bversion_cmp(i[0].k->k.bversion, i[1].k->k.bversion) >= 0); in bch2_accounting_read()
A Dio_write_types.h97 struct bversion version;
A Dio_read.h71 struct bversion version;
A Dbtree_gc.c661 k.k->bversion.lo > atomic64_read(&c->journal.seq)); in bch2_gc_mark_key()
664 k.k->bversion.lo > atomic64_read(&c->key_version), in bch2_gc_mark_key()
669 atomic64_set(&c->key_version, k.k->bversion.lo); in bch2_gc_mark_key()
A Dio_write.c783 struct bversion version, in init_append_extent()
793 e->k.bversion = version; in init_append_extent()
1044 struct bversion version = op->version; in bch2_write_extent()
1636 id->k.bversion = op->version; in bch2_write_data_inline()
A Dreflink.c535 r_v->k.bversion = orig->k.bversion; in bch2_make_extent_indirect()
A Dbkey_methods.c309 prt_printf(out, " len %u ver %llu", k->size, k->bversion.lo); in bch2_bkey_to_text()
A Dbtree_trans_commit.c654 i->k->k.bversion.lo = trans->journal_res.seq; in bch2_trans_commit_write_locked()
657 i->k->k.bversion = MAX_VERSION; in bch2_trans_commit_write_locked()
A Drecovery.c216 if (bversion_cmp(old.k->bversion, k->k->k.bversion) >= 0) { in bch2_journal_replay_accounting_key()
A Dchecksum.c315 struct bversion version, in bch2_rechecksum_bio()
A Dio_read.c717 if (bversion_cmp(k.k->bversion, rbio->version) || in __bch2_rbio_narrow_crcs()
1231 rbio->version = k.k->bversion; in __bch2_read_extent()
A Dtests.c401 k.k_i.k.bversion.lo = test_version++; in insert_test_extent()
A Ddata_update.c851 m->op.version = k.k->bversion; in bch2_data_update_init()
A Dbackpointers.c520 struct nonce nonce = extent_nonce(extent.k->bversion, p.crc); in check_extent_checksum()
A Dbtree_io.c1306 !bversion_cmp(u.k->bversion, MAX_VERSION))) { in bch2_btree_node_read_done()

Completed in 49 milliseconds