summaryrefslogtreecommitdiff
path: root/libbcachefs/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/io.c')
-rw-r--r--libbcachefs/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbcachefs/io.c b/libbcachefs/io.c
index fa7781ee..e87c0a7f 100644
--- a/libbcachefs/io.c
+++ b/libbcachefs/io.c
@@ -150,11 +150,11 @@ static bool bch2_target_congested(struct bch_fs *c, u16 target)
void bch2_bio_free_pages_pool(struct bch_fs *c, struct bio *bio)
{
struct bvec_iter_all iter;
- struct bio_vec bv;
+ struct bio_vec *bv;
bio_for_each_segment_all(bv, bio, iter)
- if (bv.bv_page != ZERO_PAGE(0))
- mempool_free(bv.bv_page, &c->bio_bounce_pages);
+ if (bv->bv_page != ZERO_PAGE(0))
+ mempool_free(bv->bv_page, &c->bio_bounce_pages);
bio->bi_vcnt = 0;
}
@@ -451,7 +451,7 @@ retry:
&devs_have,
opts.data_replicas,
opts.data_replicas,
- RESERVE_none, 0, &cl, &wp);
+ BCH_WATERMARK_normal, 0, &cl, &wp);
if (ret) {
bch2_trans_unlock(trans);
closure_sync(&cl);