Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git] / fs / btrfs / compression.c
index eb8e20b740d6e245ec303da68ab335ce21fcd14a..4f2a8ae0aa421f35fc5fc5ea97e598273ffc10ba 100644 (file)
@@ -162,13 +162,14 @@ csum_failed:
        } else {
                int i;
                struct bio_vec *bvec;
+               struct bvec_iter_all iter_all;
 
                /*
                 * we have verified the checksum already, set page
                 * checked so the end_io handlers know about it
                 */
                ASSERT(!bio_flagged(bio, BIO_CLONED));
-               bio_for_each_segment_all(bvec, cb->orig_bio, i)
+               bio_for_each_segment_all(bvec, cb->orig_bio, i, iter_all)
                        SetPageChecked(bvec->bv_page);
 
                bio_endio(cb->orig_bio);