Lines Matching +full:double +full:- +full:phase
1 /* SPDX-License-Identifier: GPL-2.0 */
16 * Note that some references will have the same GC position as others - e.g.
23 * without that, we would at best double count sometimes.
25 * That part is important - whenever calling bch2_mark_pointers(), a lock _must_
33 /* Position of (the start of) a gc phase: */
34 static inline struct gc_pos gc_phase(enum gc_phase phase) in gc_phase() argument
36 return (struct gc_pos) { .phase = phase, }; in gc_phase()
43 .phase = GC_PHASE_btree, in gc_pos_btree()
53 return -2; in gc_btree_order()
55 return -1; in gc_btree_order()
61 return cmp_int(l.phase, r.phase) ?: in gc_pos_cmp()
74 seq = read_seqcount_begin(&c->gc_pos_lock); in gc_visited()
75 ret = gc_pos_cmp(pos, c->gc_pos) <= 0; in gc_visited()
76 } while (read_seqcount_retry(&c->gc_pos_lock, seq)); in gc_visited()