Lines Matching refs:seq_to_flush
486 u64 seq_to_flush, in journal_get_next_pin() argument
496 if (*seq > seq_to_flush && !allowed_above_seq) in journal_get_next_pin()
500 if ((((1U << i) & allowed_below_seq) && *seq <= seq_to_flush) || in journal_get_next_pin()
514 u64 seq_to_flush, in journal_flush_pins() argument
547 pin = journal_get_next_pin(j, seq_to_flush, allowed_below, allowed_above, &seq); in journal_flush_pins()
589 u64 seq_to_flush = 0; in journal_seq_to_flush() local
606 seq_to_flush = max(seq_to_flush, in journal_seq_to_flush()
611 seq_to_flush = max_t(s64, seq_to_flush, in journal_seq_to_flush()
616 return seq_to_flush; in journal_seq_to_flush()
646 u64 seq_to_flush; in __bch2_journal_reclaim() local
671 seq_to_flush = journal_seq_to_flush(j); in __bch2_journal_reclaim()
698 nr_flushed = journal_flush_pins(j, seq_to_flush, in __bch2_journal_reclaim()
808 static int journal_flush_done(struct journal *j, u64 seq_to_flush, in journal_flush_done() argument
819 if (journal_flush_pins(j, seq_to_flush, in journal_flush_done()
822 journal_flush_pins(j, seq_to_flush, in journal_flush_done()
826 if (seq_to_flush > journal_cur_seq(j)) in journal_flush_done()
835 journal_last_seq(j) > seq_to_flush || in journal_flush_done()
844 bool bch2_journal_flush_pins(struct journal *j, u64 seq_to_flush) in bch2_journal_flush_pins() argument
853 journal_flush_done(j, seq_to_flush, &did_work)); in bch2_journal_flush_pins()