diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-01-11 06:41:59 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-01-11 07:02:08 -0500 |
commit | 4de98a2712764bceb9e0f67b1ac2f2c7862feb77 (patch) | |
tree | 94861af51e19af917d80952dfabeaa7a76901eaa /libbcachefs/super-io.h | |
parent | f8cbede6d18e81c804e62fd7d576310b420dcaac (diff) |
Update bcachefs sources to 02ae70070a bcachefs: Allocate new btree roots lazily
Diffstat (limited to 'libbcachefs/super-io.h')
-rw-r--r-- | libbcachefs/super-io.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/libbcachefs/super-io.h b/libbcachefs/super-io.h index e0dd26e3..59a8b816 100644 --- a/libbcachefs/super-io.h +++ b/libbcachefs/super-io.h @@ -94,8 +94,7 @@ int bch2_super_realloc(struct bch_sb_handle *, unsigned); const char *bch2_sb_validate(struct bch_sb_handle *); -const char *bch2_read_super(const char *, struct bch_opts, - struct bch_sb_handle *); +int bch2_read_super(const char *, struct bch_opts *, struct bch_sb_handle *); void bch2_write_super(struct bch_fs *); /* BCH_SB_FIELD_journal: */ @@ -139,14 +138,10 @@ static inline struct bch_member_cpu bch2_mi_to_cpu(struct bch_member *mi) /* BCH_SB_FIELD_replicas: */ -bool bch2_sb_has_replicas(struct bch_fs *, struct bkey_s_c_extent, - enum bch_data_type); -bool bch2_sb_has_replicas_devlist(struct bch_fs *, struct bch_devs_list *, - enum bch_data_type); -int bch2_check_mark_super(struct bch_fs *, struct bkey_s_c_extent, - enum bch_data_type); -int bch2_check_mark_super_devlist(struct bch_fs *, struct bch_devs_list *, - enum bch_data_type); +bool bch2_sb_has_replicas(struct bch_fs *, enum bch_data_type, + struct bch_devs_list); +int bch2_check_mark_super(struct bch_fs *, enum bch_data_type, + struct bch_devs_list); int bch2_cpu_replicas_to_text(struct bch_replicas_cpu *, char *, size_t); int bch2_sb_replicas_to_text(struct bch_sb_field_replicas *, char *, size_t); |