Home
last modified time | relevance | path

Searched refs:gc_pos (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dbtree_gc.h34 static inline struct gc_pos gc_phase(enum gc_phase phase) in gc_phase()
36 return (struct gc_pos) { .phase = phase, }; in gc_phase()
39 static inline struct gc_pos gc_pos_btree(enum btree_id btree, unsigned level, in gc_pos_btree()
42 return (struct gc_pos) { in gc_pos_btree()
59 static inline int gc_pos_cmp(struct gc_pos l, struct gc_pos r) in gc_pos_cmp()
68 static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos) in gc_visited()
75 ret = gc_pos_cmp(pos, c->gc_pos) <= 0; in gc_visited()
81 void bch2_gc_pos_to_text(struct printbuf *, struct gc_pos *);
Dbtree_gc_types.h19 struct gc_pos { struct
Dbtree_gc.c55 void bch2_gc_pos_to_text(struct printbuf *out, struct gc_pos *p) in bch2_gc_pos_to_text()
72 static inline void __gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in __gc_pos_set()
76 c->gc_pos = new_pos; in __gc_pos_set()
81 static inline void gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in gc_pos_set()
83 BUG_ON(gc_pos_cmp(new_pos, c->gc_pos) < 0); in gc_pos_set()
Dbcachefs.h948 struct gc_pos gc_pos; member
Dbtree_trans_commit.c736 if (unlikely(c->gc_pos.phase)) { in bch2_trans_commit_write_locked()
Dec.c941 if (c->gc_pos.phase != GC_PHASE_not_running && in __ec_stripe_mem_alloc()