From 2a912a9a39bf0ce7709d53f00d1d341d2478c96e Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 5 Mar 2023 23:52:49 -0500 Subject: bcachefs: Kill bch2_ec_bucket_written() Signed-off-by: Kent Overstreet --- fs/bcachefs/alloc_foreground.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs/bcachefs/alloc_foreground.c') diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index 5aab85f1a835..7b048ef99b97 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -97,7 +97,7 @@ void __bch2_open_bucket_put(struct bch_fs *c, struct open_bucket *ob) struct bch_dev *ca = bch_dev_bkey_exists(c, ob->dev); if (ob->ec) { - bch2_ec_bucket_written(c, ob); + ec_stripe_new_put(c, ob->ec); return; } @@ -838,10 +838,10 @@ got_bucket: ob->ec_idx = ec_idx; ob->ec = h->s; + ec_stripe_new_get(h->s); add_new_bucket(c, ptrs, devs_may_alloc, nr_effective, have_cache, flags, ob); - atomic_inc(&h->s->pin); out_put_head: bch2_ec_stripe_head_put(c, h); return 0; -- cgit v1.2.3