Home
last modified time | relevance | path

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

/linux/fs/bcachefs/
H A 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 *);
H A Dbtree_gc_types.h19 struct gc_pos { struct
H A Dbtree_gc.c56 void bch2_gc_pos_to_text(struct printbuf *out, struct gc_pos *p) in bch2_gc_pos_to_text()
73 static inline void __gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in __gc_pos_set()
77 c->gc_pos = new_pos; in __gc_pos_set()
82 static inline void gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in gc_pos_set()
84 BUG_ON(gc_pos_cmp(new_pos, c->gc_pos) < 0); in gc_pos_set()
H A Dbcachefs.h947 struct gc_pos gc_pos; member
H A Dbtree_trans_commit.c709 if (unlikely(c->gc_pos.phase)) { in bch2_trans_commit_write_locked()
H A Dec.c940 if (c->gc_pos.phase != GC_PHASE_not_running && in __ec_stripe_mem_alloc()