summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/recovery.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-29 14:40:03 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 11:47:07 -0500
commit808c680f2a256188951805f05c907d40919db37a (patch)
tree4634c24a756d5fb56040194e2562f31a5b92e17c /fs/bcachefs/recovery.h
parent560661d4ae067276c14bf0dc89fdd0228f993150 (diff)
downloadlinux-808c680f2a256188951805f05c907d40919db37a.tar.gz
linux-808c680f2a256188951805f05c907d40919db37a.tar.bz2
linux-808c680f2a256188951805f05c907d40919db37a.zip
bcachefs: Add persistent identifiers for recovery passes
The next patch will start to refer to recovery passes from the superblock; naturally, we now need identifiers that don't change, since the existing enum is in the order in which they are run and is not fixed. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.h')
-rw-r--r--fs/bcachefs/recovery.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.h b/fs/bcachefs/recovery.h
index d266aae90200..3a554b0751d0 100644
--- a/fs/bcachefs/recovery.h
+++ b/fs/bcachefs/recovery.h
@@ -4,6 +4,9 @@
extern const char * const bch2_recovery_passes[];
+u64 bch2_recovery_passes_to_stable(u64 v);
+u64 bch2_recovery_passes_from_stable(u64 v);
+
/*
* For when we need to rewind recovery passes and run a pass we skipped:
*/