Lines Matching refs:e

21 static inline unsigned bch2_sb_field_errors_nr_entries(struct bch_sb_field_errors *e)  in bch2_sb_field_errors_nr_entries()  argument
23 return bch2_sb_field_nr_entries(e); in bch2_sb_field_errors_nr_entries()
35 struct bch_sb_field_errors *e = field_to_type(f, errors); in bch2_sb_errors_validate() local
36 unsigned i, nr = bch2_sb_field_errors_nr_entries(e); in bch2_sb_errors_validate()
39 if (!BCH_SB_ERROR_ENTRY_NR(&e->entries[i])) { in bch2_sb_errors_validate()
41 bch2_sb_error_id_to_text(err, BCH_SB_ERROR_ENTRY_ID(&e->entries[i])); in bch2_sb_errors_validate()
47 BCH_SB_ERROR_ENTRY_ID(&e->entries[i]) >= in bch2_sb_errors_validate()
48 BCH_SB_ERROR_ENTRY_ID(&e->entries[i + 1])) { in bch2_sb_errors_validate()
60 struct bch_sb_field_errors *e = field_to_type(f, errors); in bch2_sb_errors_to_text() local
61 unsigned i, nr = bch2_sb_field_errors_nr_entries(e); in bch2_sb_errors_to_text()
67 bch2_sb_error_id_to_text(out, BCH_SB_ERROR_ENTRY_ID(&e->entries[i])); in bch2_sb_errors_to_text()
69 prt_u64(out, BCH_SB_ERROR_ENTRY_NR(&e->entries[i])); in bch2_sb_errors_to_text()
71 bch2_prt_datetime(out, le64_to_cpu(e->entries[i].last_error_time)); in bch2_sb_errors_to_text()
92 bch_sb_errors_cpu *e = &c->fsck_error_counts; in bch2_fs_errors_to_text() local
93 darray_for_each(*e, i) { in bch2_fs_errors_to_text()
105 bch_sb_errors_cpu *e = &c->fsck_error_counts; in bch2_sb_error_count() local
114 for (i = 0; i < e->nr; i++) { in bch2_sb_error_count()
115 if (err == e->data[i].id) { in bch2_sb_error_count()
116 e->data[i].nr++; in bch2_sb_error_count()
117 e->data[i].last_error_time = n.last_error_time; in bch2_sb_error_count()
120 if (err < e->data[i].id) in bch2_sb_error_count()
124 if (darray_make_room(e, 1)) in bch2_sb_error_count()
127 darray_insert_item(e, i, n); in bch2_sb_error_count()