summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-03-22 03:19:57 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:18 +0200
commit134915f3d38d830374603b84a9fe2e280f4814ed (patch)
tree5c7c2ad3fab6863e048c6d9de098bdb7fefa77dc /fs/bcachefs/super.h
parentbcachefs: Fix a deadlock (diff)
downloadlinux-134915f3d38d830374603b84a9fe2e280f4814ed.tar.xz
linux-134915f3d38d830374603b84a9fe2e280f4814ed.zip
bcachefs: Go rw lazily
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.h')
-rw-r--r--fs/bcachefs/super.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/super.h b/fs/bcachefs/super.h
index 3f730164ca69..91df0d729322 100644
--- a/fs/bcachefs/super.h
+++ b/fs/bcachefs/super.h
@@ -217,7 +217,9 @@ 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 *);
-const char *bch2_fs_read_write(struct bch_fs *);
+
+int bch2_fs_read_write(struct bch_fs *);
+int bch2_fs_read_write_early(struct bch_fs *);
void bch2_fs_stop(struct bch_fs *);