Lines Matching refs:journal
22 struct bch_sb_field_journal *journal = field_to_type(f, journal); in bch2_sb_journal_validate() local
29 nr = bch2_nr_journal_buckets(journal); in bch2_sb_journal_validate()
38 b[i] = le64_to_cpu(journal->buckets[i]); in bch2_sb_journal_validate()
74 struct bch_sb_field_journal *journal = field_to_type(f, journal); in bch2_sb_journal_to_text() local
75 unsigned i, nr = bch2_nr_journal_buckets(journal); in bch2_sb_journal_to_text()
79 prt_printf(out, " %llu", le64_to_cpu(journal->buckets[i])); in bch2_sb_journal_to_text()
104 struct bch_sb_field_journal_v2 *journal = field_to_type(f, journal_v2); in bch2_sb_journal_v2_validate() local
112 nr = bch2_sb_field_journal_v2_nr_entries(journal); in bch2_sb_journal_v2_validate()
121 b[i].start = le64_to_cpu(journal->d[i].start); in bch2_sb_journal_v2_validate()
122 b[i].end = b[i].start + le64_to_cpu(journal->d[i].nr); in bch2_sb_journal_v2_validate()
126 le64_to_cpu(journal->d[i].start), in bch2_sb_journal_v2_validate()
127 le64_to_cpu(journal->d[i].nr)); in bch2_sb_journal_v2_validate()
131 sum += le64_to_cpu(journal->d[i].nr); in bch2_sb_journal_v2_validate()
175 struct bch_sb_field_journal_v2 *journal = field_to_type(f, journal_v2); in bch2_sb_journal_v2_to_text() local
176 unsigned i, nr = bch2_sb_field_journal_v2_nr_entries(journal); in bch2_sb_journal_v2_to_text()
181 le64_to_cpu(journal->d[i].start), in bch2_sb_journal_v2_to_text()
182 le64_to_cpu(journal->d[i].start) + le64_to_cpu(journal->d[i].nr)); in bch2_sb_journal_v2_to_text()