]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/ec.h
rust: Fix ptr casting in Fs::open()
[bcachefs-tools-debian] / libbcachefs / ec.h
index c9e4fb214649540be76af8c9ff4e45a5d76ff68b..56d1b5e7d79733ada4b36192de92146fd8530da3 100644 (file)
@@ -181,7 +181,7 @@ struct ec_stripe_head {
        unsigned                target;
        unsigned                algo;
        unsigned                redundancy;
-       bool                    copygc;
+       enum alloc_reserve      reserve;
 
        struct bch_devs_mask    devs;
        unsigned                nr_active_devs;
@@ -205,7 +205,8 @@ int bch2_ec_stripe_new_alloc(struct bch_fs *, struct ec_stripe_head *);
 
 void bch2_ec_stripe_head_put(struct bch_fs *, struct ec_stripe_head *);
 struct ec_stripe_head *bch2_ec_stripe_head_get(struct btree_trans *,
-                       unsigned, unsigned, unsigned, bool, struct closure *);
+                       unsigned, unsigned, unsigned,
+                       enum alloc_reserve, struct closure *);
 
 void bch2_stripes_heap_update(struct bch_fs *, struct stripe *, size_t);
 void bch2_stripes_heap_del(struct bch_fs *, struct stripe *, size_t);