]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - fs/exofs/ore.c
block: allow bio_for_each_segment_all() to iterate over multi-page bvec
[mirror_ubuntu-jammy-kernel.git] / fs / exofs / ore.c
index 5331a15a61f198fd8e897b582e3e48b9c9add993..24a8e34882e956ec4427a5f1e358a13c8b93f0c3 100644 (file)
@@ -420,8 +420,9 @@ static void _clear_bio(struct bio *bio)
 {
        struct bio_vec *bv;
        unsigned i;
+       struct bvec_iter_all iter_all;
 
-       bio_for_each_segment_all(bv, bio, i) {
+       bio_for_each_segment_all(bv, bio, i, iter_all) {
                unsigned this_count = bv->bv_len;
 
                if (likely(PAGE_SIZE == this_count))