summaryrefslogtreecommitdiff
path: root/libbcachefs/super-io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-03-24 21:06:58 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-03-24 21:06:58 -0400
commitddb58076ef4fe4572ab8537785fc67052f47bf5b (patch)
tree57e0c770dab82d9cf7bb02e40dd1126701657958 /libbcachefs/super-io.h
parent0894d547501fb9306ae7b1c669b66a7b49fb2205 (diff)
Update bcachefs sources to ffe09df106 bcachefs: Verify fs hasn't been modified before going rw
Diffstat (limited to 'libbcachefs/super-io.h')
-rw-r--r--libbcachefs/super-io.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbcachefs/super-io.h b/libbcachefs/super-io.h
index c48294c8..aa91b821 100644
--- a/libbcachefs/super-io.h
+++ b/libbcachefs/super-io.h
@@ -88,7 +88,7 @@ int bch2_sb_realloc(struct bch_sb_handle *, unsigned);
const char *bch2_sb_validate(struct bch_sb_handle *);
int bch2_read_super(const char *, struct bch_opts *, struct bch_sb_handle *);
-void bch2_write_super(struct bch_fs *);
+int bch2_write_super(struct bch_fs *);
/* BCH_SB_FIELD_journal: */
@@ -140,7 +140,8 @@ bch2_journal_super_entries_add_common(struct bch_fs *,
void bch2_sb_clean_renumber(struct bch_sb_field_clean *, int);
-void bch2_fs_mark_clean(struct bch_fs *, bool);
+int bch2_fs_mark_dirty(struct bch_fs *);
+void bch2_fs_mark_clean(struct bch_fs *);
void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
struct bch_sb_field *);