Searched refs:discard_idx (Results 1 – 6 of 6) sorted by relevance
278 ja->last_idx = ja->discard_idx = (i + 1) % in bch_journal_read()597 ja->discard_idx = ja->last_idx; in do_journal_discard()606 ja->discard_idx = (ja->discard_idx + 1) % in do_journal_discard()613 if (ja->discard_idx == ja->last_idx) in do_journal_discard()620 ca->sb.d[ja->discard_idx]); in do_journal_discard()638 if (ja->cur_idx >= ja->discard_idx) in free_journal_buckets()639 n = ca->sb.njournal_buckets + ja->discard_idx - ja->cur_idx; in free_journal_buckets()641 n = ja->discard_idx - ja->cur_idx; in free_journal_buckets()
143 unsigned int discard_idx; member
27 return ja->discard_idx; in journal_space_from()197 if (ja->discard_idx != ja->dirty_idx_ondisk) in bch2_journal_space_available()260 ret = ja->discard_idx != ja->dirty_idx_ondisk; in should_discard_bucket()285 ja->buckets[ja->discard_idx]), in bch2_journal_do_discards()289 ja->discard_idx = (ja->discard_idx + 1) % ja->nr; in bch2_journal_do_discards()
990 BUG_ON(ja->discard_idx > ja->nr); in __bch2_set_nr_journal_buckets()992 pos = ja->discard_idx ?: ja->nr; in __bch2_set_nr_journal_buckets()1023 if (pos <= ja->discard_idx) in __bch2_set_nr_journal_buckets()1024 ja->discard_idx = (ja->discard_idx + nr_got) % ja->nr; in __bch2_set_nr_journal_buckets()1515 prt_printf(out, "discard_idx\t%u\n", ja->discard_idx); in __bch2_journal_debug_to_text()
322 unsigned discard_idx; /* Next bucket to discard */ member
1171 ja->discard_idx = ja->dirty_idx_ondisk = in CLOSURE_CALLBACK()