]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - linux/bio.c
Fix refcount bug in blkdev and timer kthreads.
[bcachefs-tools-debian] / linux / bio.c
index d9b860a026a80d68bea50622ba9e8d4efb1bfd40..797204f81fb2b960387baa9ed1b424c8f220d050 100644 (file)
@@ -167,9 +167,8 @@ void bio_free_pages(struct bio *bio)
 {
        struct bvec_iter_all iter;
        struct bio_vec *bvec;
-       int i;
 
-       bio_for_each_segment_all(bvec, bio, i, iter)
+       bio_for_each_segment_all(bvec, bio, iter)
                __free_page(bvec->bv_page);
 }