summaryrefslogtreecommitdiff
path: root/fs/bcachefs/move.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-06-30 16:35:37 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2020-06-29 19:25:57 -0400
commit0511e1ea598d18d603d4478030c1e5893d5b2598 (patch)
tree2f4635fc2721d58ce2bd43726368a6e1f988799e /fs/bcachefs/move.c
parent217eb889b5c4ace879083617690d4b3d615de073 (diff)
bcachefs: Fixes for 4.19
Diffstat (limited to 'fs/bcachefs/move.c')
-rw-r--r--fs/bcachefs/move.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
index b42350f9e9fb..dd2011e295cc 100644
--- a/fs/bcachefs/move.c
+++ b/fs/bcachefs/move.c
@@ -316,12 +316,12 @@ static void move_free(struct closure *cl)
{
struct moving_io *io = container_of(cl, struct moving_io, cl);
struct moving_context *ctxt = io->write.ctxt;
- struct bvec_iter_all iter;
struct bio_vec *bv;
+ unsigned i;
bch2_disk_reservation_put(io->write.op.c, &io->write.op.res);
- bio_for_each_segment_all(bv, &io->write.op.wbio.bio, iter)
+ bio_for_each_segment_all(bv, &io->write.op.wbio.bio, i)
if (bv->bv_page)
__free_page(bv->bv_page);