]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bch2_run_explicit_recovery_pass() returns different error when not in recovery
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Sep 2024 00:21:18 +0000 (20:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:14 +0000 (01:36 -0500)
commit18f5b84a04707565b926b3dcdfbc6f88ef53988a
tree33d5278f1661be1b4f765b45ed261cc7f201b2fb
parenteba3d7e57d2a4e0c1f28b5c2e3bb691279ab6eaf
bcachefs: bch2_run_explicit_recovery_pass() returns different error when not in recovery

if we're not in recovery then there's no way to rewind recovery - give
this a different errcode so that any error messages will give us a
better idea of what happened.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/errcode.h
fs/bcachefs/recovery_passes.c