summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super-io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-07-10 12:23:01 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:06 -0400
commit6619d84626ff266721f4c3c24339c60ca8cb12e0 (patch)
treebc30f126a0bc155468f49db5bcfc92d352d85e91 /fs/bcachefs/super-io.h
parent01e691e830edae9a145eeb70f8983223d606e2ca (diff)
downloadlinux-stable-6619d84626ff266721f4c3c24339c60ca8cb12e0.tar.gz
linux-stable-6619d84626ff266721f4c3c24339c60ca8cb12e0.tar.bz2
linux-stable-6619d84626ff266721f4c3c24339c60ca8cb12e0.zip
bcachefs: bch2_sb_maybe_downgrade(), bch2_sb_upgrade()
Add some new helpers, and fix upgrade/downgrade in bch2_fs_initialize(). Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.h')
-rw-r--r--fs/bcachefs/super-io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/super-io.h b/fs/bcachefs/super-io.h
index a850cc4ae6c7..b365f088ba41 100644
--- a/fs/bcachefs/super-io.h
+++ b/fs/bcachefs/super-io.h
@@ -124,6 +124,9 @@ void bch2_journal_super_entries_add_common(struct bch_fs *,
int bch2_sb_clean_validate_late(struct bch_fs *, struct bch_sb_field_clean *, int);
+void bch2_sb_maybe_downgrade(struct bch_fs *);
+void bch2_sb_upgrade(struct bch_fs *, unsigned);
+
int bch2_fs_mark_dirty(struct bch_fs *);
void bch2_fs_mark_clean(struct bch_fs *);