summaryrefslogtreecommitdiff
path: root/libbcachefs/ec.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-05-30 22:36:00 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-05-30 23:24:10 -0400
commit46b2c553aa462cf2c25b1fe017c164c2da471a98 (patch)
treee8e375ff2dd066764c76cf70af15f5834631fa6b /libbcachefs/ec.c
parent962390c0b2e90c1c85abfe69b8b76fd7ef3925ee (diff)
Update bcachefs sources to fad6d13aa5 fixup! bcachefs: Add persistent counters
Diffstat (limited to 'libbcachefs/ec.c')
-rw-r--r--libbcachefs/ec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbcachefs/ec.c b/libbcachefs/ec.c
index dd0b3d7e..ae33d3ea 100644
--- a/libbcachefs/ec.c
+++ b/libbcachefs/ec.c
@@ -412,7 +412,10 @@ static void ec_block_io(struct bch_fs *c, struct ec_stripe_buf *buf,
nr_iovecs << PAGE_SHIFT);
struct ec_bio *ec_bio;
- ec_bio = container_of(bio_alloc_bioset(GFP_KERNEL, nr_iovecs,
+ ec_bio = container_of(bio_alloc_bioset(ca->disk_sb.bdev,
+ nr_iovecs,
+ rw,
+ GFP_KERNEL,
&c->ec_bioset),
struct ec_bio, bio);
@@ -420,9 +423,6 @@ static void ec_block_io(struct bch_fs *c, struct ec_stripe_buf *buf,
ec_bio->buf = buf;
ec_bio->idx = idx;
- bio_set_dev(&ec_bio->bio, ca->disk_sb.bdev);
- bio_set_op_attrs(&ec_bio->bio, rw, 0);
-
ec_bio->bio.bi_iter.bi_sector = ptr->offset + buf->offset + (offset >> 9);
ec_bio->bio.bi_end_io = ec_block_endio;
ec_bio->bio.bi_private = cl;