bcachefs: Fix setting of downgrade recovery passes/errors
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 27 May 2024 20:30:19 +0000 (16:30 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 May 2024 15:29:26 +0000 (11:29 -0400)
commit247c056bde2ebc9fad2fc62332dc7cc99b58d720
tree3ad6d6a922765e11cbe441dcb508117cb0d4a806
parent08f50005e09f3bf74a7cb5fd86335d3c4077df51
bcachefs: Fix setting of downgrade recovery passes/errors

bch2_check_version_downgrade() was setting c->sb.version, which
bch2_sb_set_downgrade() expects to be at the previous version; and it
shouldn't even have been set directly because c->sb.version is updated
by write_super().

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super-io.c