Searched refs:gc_pos (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | btree_gc.h | 34 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 *);
|
D | btree_gc_types.h | 19 struct gc_pos { struct
|
D | btree_gc.c | 55 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()
|
D | bcachefs.h | 948 struct gc_pos gc_pos; member
|
D | btree_trans_commit.c | 736 if (unlikely(c->gc_pos.phase)) { in bch2_trans_commit_write_locked()
|
D | ec.c | 941 if (c->gc_pos.phase != GC_PHASE_not_running && in __ec_stripe_mem_alloc()
|