From: Kent Overstreet <kent.overstreet@xxxxxxxxx> commit ddd118ab45e848b1956ef8c8ef84963a554b5b58 upstream. Missing enum conversion Signed-off-by: Kent Overstreet <kent.overstreet@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/bcachefs/sb-downgrade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/bcachefs/sb-downgrade.c +++ b/fs/bcachefs/sb-downgrade.c @@ -225,7 +225,7 @@ int bch2_sb_downgrade_update(struct bch_ dst = (void *) &darray_top(table); 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->nr_errors = cpu_to_le16(src->nr_errors); for (unsigned i = 0; i < src->nr_errors; i++) Patches currently in stable-queue which might be from kent.overstreet@xxxxxxxxx are queue-6.9/bcachefs-btree_gc-can-now-handle-unknown-btrees.patch queue-6.9/bcachefs-fix-sb-downgrade-validation.patch queue-6.9/bcachefs-fix-bch2_sb_downgrade_update.patch queue-6.9/bcachefs-fix-sb_field_downgrade-validation.patch queue-6.9/bcachefs-fix-setting-of-downgrade-recovery-passes-errors.patch