summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super-io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-03-05 01:06:26 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:55 +0200
commit7d6f07edc28c3c34bad7e6a92921e3fbf8c8dd4e (patch)
tree395f866b3f9dd9b2fb49923160c3fe12dfc495cb /fs/bcachefs/super-io.h
parentbcachefs: Fix bpos_diff() (diff)
downloadlinux-7d6f07edc28c3c34bad7e6a92921e3fbf8c8dd4e.tar.xz
linux-7d6f07edc28c3c34bad7e6a92921e3fbf8c8dd4e.zip
bcachefs: Fix compat code for superblock
The bkey compat code wasn't being run for btree roots in the superblock clean section - this patch fixes it to use the journal entry validate code. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.h')
-rw-r--r--fs/bcachefs/super-io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.h b/fs/bcachefs/super-io.h
index dd8d4ba911f0..62d040d571c0 100644
--- a/fs/bcachefs/super-io.h
+++ b/fs/bcachefs/super-io.h
@@ -125,7 +125,7 @@ static inline struct bch_member_cpu bch2_mi_to_cpu(struct bch_member *mi)
void bch2_journal_super_entries_add_common(struct bch_fs *,
struct jset_entry **, u64);
-void bch2_sb_clean_renumber(struct bch_sb_field_clean *, int);
+int bch2_sb_clean_validate(struct bch_fs *, struct bch_sb_field_clean *, int);
int bch2_fs_mark_dirty(struct bch_fs *);
void bch2_fs_mark_clean(struct bch_fs *);