Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/md/bcache/
Djournal.c278 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()
Djournal.h143 unsigned int discard_idx; member
/linux-6.12.1/fs/bcachefs/
Djournal_reclaim.c27 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()
Djournal.c990 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()
Djournal_types.h322 unsigned discard_idx; /* Next bucket to discard */ member
Djournal_io.c1171 ja->discard_idx = ja->dirty_idx_ondisk = in CLOSURE_CALLBACK()