summaryrefslogtreecommitdiff
path: root/fs/bcachefs/super.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-03-22 06:13:46 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:18 +0300
commit03e183cb5d429a3bb53816d70da7c19f0745909e (patch)
tree76b1c8fd41a84cfc544dca8872faa1d516ca5b17 /fs/bcachefs/super.h
parent134915f3d38d830374603b84a9fe2e280f4814ed (diff)
downloadlinux-03e183cb5d429a3bb53816d70da7c19f0745909e.tar.xz
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.h')
-rw-r--r--fs/bcachefs/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/super.h b/fs/bcachefs/super.h
index 91df0d729322..92ef3e7c8dc2 100644
--- a/fs/bcachefs/super.h
+++ b/fs/bcachefs/super.h
@@ -218,6 +218,7 @@ struct bch_dev *bch2_dev_lookup(struct bch_fs *, const char *);
bool bch2_fs_emergency_read_only(struct bch_fs *);
void bch2_fs_read_only(struct bch_fs *);
+int __bch2_fs_read_write(struct bch_fs *, bool);
int bch2_fs_read_write(struct bch_fs *);
int bch2_fs_read_write_early(struct bch_fs *);