mirror of
https://github.com/torvalds/linux
synced 2024-07-22 03:01:14 +00:00
bcachefs: Fix bch2_sb_downgrade_update()
Missing enum conversion Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
2e9940d4a1
commit
ddd118ab45
|
@ -228,7 +228,7 @@ int bch2_sb_downgrade_update(struct bch_fs *c)
|
||||||
|
|
||||||
dst = (void *) &darray_top(table);
|
dst = (void *) &darray_top(table);
|
||||||
dst->version = cpu_to_le16(src->version);
|
dst->version = cpu_to_le16(src->version);
|
||||||
dst->recovery_passes[0] = cpu_to_le64(src->recovery_passes);
|
dst->recovery_passes[0] = cpu_to_le64(bch2_recovery_passes_to_stable(src->recovery_passes));
|
||||||
dst->recovery_passes[1] = 0;
|
dst->recovery_passes[1] = 0;
|
||||||
dst->nr_errors = cpu_to_le16(src->nr_errors);
|
dst->nr_errors = cpu_to_le16(src->nr_errors);
|
||||||
for (unsigned i = 0; i < src->nr_errors; i++)
|
for (unsigned i = 0; i < src->nr_errors; i++)
|
||||||
|
|
Loading…
Reference in a new issue