diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-20 18:55:08 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-20 20:03:34 -0500 |
commit | da6a35689518599b381c285cd9505ab8d58f7c73 (patch) | |
tree | 20ae5acb9ca8f8a89a45aa52a092be8d13f29d74 /libbcachefs/ec.h | |
parent | 46a6b9210c927ab46fd1227cb6f641be0b4a7505 (diff) |
Update bcachefs sources to 8e1519ccb6 bcachefs: Add tracepoint & counter for btree split race
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/ec.h')
-rw-r--r-- | libbcachefs/ec.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libbcachefs/ec.h b/libbcachefs/ec.h index d47da7d8..c9e4fb21 100644 --- a/libbcachefs/ec.h +++ b/libbcachefs/ec.h @@ -148,6 +148,10 @@ struct ec_stripe_new { struct ec_stripe_head *h; struct mutex lock; struct list_head list; + + struct hlist_node hash; + u64 idx; + struct closure iodone; /* counts in flight writes, stripe is created when pin == 0 */ @@ -200,7 +204,7 @@ void bch2_ec_bucket_cancel(struct bch_fs *, struct open_bucket *); 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 bch_fs *, +struct ec_stripe_head *bch2_ec_stripe_head_get(struct btree_trans *, unsigned, unsigned, unsigned, bool, struct closure *); void bch2_stripes_heap_update(struct bch_fs *, struct stripe *, size_t); @@ -213,8 +217,6 @@ void bch2_ec_stop_dev(struct bch_fs *, struct bch_dev *); void bch2_ec_flush_new_stripes(struct bch_fs *); -void bch2_stripes_heap_start(struct bch_fs *); - int bch2_stripes_read(struct bch_fs *); void bch2_stripes_heap_to_text(struct printbuf *, struct bch_fs *); |