Lines Matching refs:errors
126 const u16 *errors; member
138 .errors = upgrade_##ver##_errors, \
199 for (const u16 *e = i->errors; e < i->errors + i->nr_errors; e++) in bch2_sb_set_upgrade()
213 .errors = downgrade_##ver##_errors, \
222 unsigned bytes = sizeof(*dst) + sizeof(dst->errors[0]) * le16_to_cpu(dst->nr_errors); in downgrade_table_extra()
230 bytes += sizeof(dst->errors[0]) * 2; in downgrade_table_extra()
241 dst->errors[nr_errors++] = cpu_to_le16(BCH_FSCK_ERR_alloc_key_dirty_sectors_wrong); in downgrade_table_extra()
253 return (void *) &e->errors[le16_to_cpu(e->nr_errors)]; in downgrade_entry_next_c()
259 (void *) &_i->errors[0] <= vstruct_end(&(_d)->field) && \
276 if ((void *) &i->errors[0] > vstruct_end(&e->field)) in bch2_sb_downgrade_validate()
321 bch2_sb_error_id_to_text(out, le16_to_cpu(i->errors[j])); in bch2_sb_downgrade_to_text()
347 unsigned bytes = sizeof(*dst) + sizeof(dst->errors[0]) * src->nr_errors; in bch2_sb_downgrade_update()
359 dst->errors[i] = cpu_to_le16(src->errors[i]); in bch2_sb_downgrade_update()
370 table.nr += sizeof(*dst) + sizeof(dst->errors[0]) * le16_to_cpu(dst->nr_errors); in bch2_sb_downgrade_update()
408 unsigned e = le16_to_cpu(i->errors[j]); in bch2_sb_set_downgrade()