Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
Ddisk_accounting_types.h9 struct bversion bversion; member
Ddisk_accounting.h39 if (bversion_cmp(dst->k.bversion, src.k->bversion) < 0) in bch2_accounting_accumulate()
40 dst->k.bversion = src.k->bversion; in bch2_accounting_accumulate()
Dbkey.h208 static __always_inline int bversion_cmp(struct bversion l, struct bversion r) in bversion_cmp()
214 #define ZERO_VERSION ((struct bversion) { .hi = 0, .lo = 0 })
215 #define MAX_VERSION ((struct bversion) { .hi = ~0, .lo = ~0ULL })
217 static __always_inline bool bversion_zero(struct bversion v) in bversion_zero()
557 x(BKEY_FIELD_VERSION_HI, bversion.hi) \
558 x(BKEY_FIELD_VERSION_LO, bversion.lo)
Dbkey_methods.h73 !bversion_cmp(l->bversion, r->bversion) && in bch2_bkey_maybe_mergable()
Dchecksum.h84 int bch2_rechecksum_bio(struct bch_fs *, struct bio *, struct bversion,
190 static inline struct nonce extent_nonce(struct bversion version, in extent_nonce()
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), \
Ddisk_accounting.c137 bkey_fsck_err_on(bversion_zero(k.k->bversion), in bch2_accounting_validate()
304 .bversion = a.k->bversion, in __bch2_accounting_mem_insert()
724 bversion_cmp(acc->k.data[idx].bversion, k.k->bversion) >= 0; in bch2_accounting_read()
732 WARN_ON(bversion_cmp(i[0].k->k.bversion, i[1].k->k.bversion) >= 0); in bch2_accounting_read()
Dio_write_types.h65 struct bversion version;
Dbtree_trans_commit.c612 static struct bversion journal_pos_to_bversion(struct journal_res *res, unsigned offset) in journal_pos_to_bversion()
614 return (struct bversion) { in journal_pos_to_bversion()
687 i->k->k.bversion.lo = trans->journal_res.seq; in bch2_trans_commit_write_locked()
690 i->k->k.bversion = MAX_VERSION; in bch2_trans_commit_write_locked()
714 a->k.bversion = journal_pos_to_bversion(&trans->journal_res, in bch2_trans_commit_write_locked()
716 BUG_ON(bversion_zero(a->k.bversion)); in bch2_trans_commit_write_locked()
Dio_read.h65 struct bversion version;
Dreflink.c370 r_v->k.bversion = orig->k.bversion; in bch2_make_extent_indirect()
Dio_write.c690 struct bversion version, in init_append_extent()
700 e->k.bversion = version; in init_append_extent()
946 struct bversion version = op->version; in bch2_write_extent()
1544 id->k.bversion = op->version; in bch2_write_data_inline()
Dbtree_gc.c604 k.k->bversion.lo > atomic64_read(&c->journal.seq)); in bch2_gc_mark_key()
607 k.k->bversion.lo > atomic64_read(&c->key_version), in bch2_gc_mark_key()
612 atomic64_set(&c->key_version, k.k->bversion.lo); in bch2_gc_mark_key()
Dbkey_methods.c292 prt_printf(out, " len %u ver %llu", k->size, k->bversion.lo); in bch2_bkey_to_text()
Drecovery.c153 if (bversion_cmp(old.k->bversion, k->k->k.bversion) >= 0) { in bch2_journal_replay_accounting_key()
Dio_read.c521 if (bversion_cmp(k.k->bversion, rbio->version) || in __bch2_rbio_narrow_crcs()
1034 rbio->version = k.k->bversion; in __bch2_read_extent()
Dchecksum.c400 struct bversion version, in bch2_rechecksum_bio()
Ddata_update.c646 m->op.version = k.k->bversion; in bch2_data_update_init()
Dtests.c397 k.k_i.k.bversion.lo = test_version++; in insert_test_extent()
Dbackpointers.c509 struct nonce nonce = extent_nonce(extent.k->bversion, p.crc); in check_extent_checksum()
Dbtree_io.c1222 !bversion_cmp(u.k->bversion, MAX_VERSION))) { in bch2_btree_node_read_done()