diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-03 23:43:03 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-04 19:56:40 -0500 |
commit | 931ed5a709c2afa239cbae2e13bc22f13e99713c (patch) | |
tree | 3a9ab0ecee0188cdc1229192b5b8b8fbc3061707 /libbcachefs/super-io.h | |
parent | 69529e313666457c295ebb256f41126ca635b36b (diff) |
Update bcachefs sources to 50ac18afbb bcachefs: Fix an uninitialized variable
Diffstat (limited to 'libbcachefs/super-io.h')
-rw-r--r-- | libbcachefs/super-io.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libbcachefs/super-io.h b/libbcachefs/super-io.h index 5c264875..3b425bed 100644 --- a/libbcachefs/super-io.h +++ b/libbcachefs/super-io.h @@ -38,9 +38,8 @@ BCH_SB_FIELDS() extern const char * const bch2_sb_fields[]; struct bch_sb_field_ops { - const char * (*validate)(struct bch_sb *, struct bch_sb_field *); - void (*to_text)(struct printbuf *, struct bch_sb *, - struct bch_sb_field *); + int (*validate)(struct bch_sb *, struct bch_sb_field *, struct printbuf *); + void (*to_text)(struct printbuf *, struct bch_sb *, struct bch_sb_field *); }; static inline __le64 bch2_sb_magic(struct bch_fs *c) @@ -66,8 +65,6 @@ int bch2_sb_from_fs(struct bch_fs *, struct bch_dev *); void bch2_free_super(struct bch_sb_handle *); 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 *); int bch2_write_super(struct bch_fs *); void __bch2_check_set_feature(struct bch_fs *, unsigned); |