summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super-io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-03-21 23:13:46 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:18 -0400
commit03e183cb5d429a3bb53816d70da7c19f0745909e (patch)
tree76b1c8fd41a84cfc544dca8872faa1d516ca5b17 /fs/bcachefs/super-io.h
parent134915f3d38d830374603b84a9fe2e280f4814ed (diff)
downloadlinux-stable-03e183cb5d429a3bb53816d70da7c19f0745909e.tar.gz
linux-stable-03e183cb5d429a3bb53816d70da7c19f0745909e.tar.bz2
linux-stable-03e183cb5d429a3bb53816d70da7c19f0745909e.zip
bcachefs: Verify fs hasn't been modified before going rw
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 afc92d14c254..31b8b8307ac3 100644
--- a/fs/bcachefs/super-io.h
+++ b/fs/bcachefs/super-io.h
@@ -89,7 +89,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: */