Whamcloud - gitweb
LU-12275 sec: add llcrypt as file encryption library
[fs/lustre-release.git] / contrib / scripts / crypto_patches / 0006_bvec_iter_all.patch
1 Linux 5.1 (commit 6dc4f100c175dd0511ae8674786e7c9006cdfbfa) introduces
2 bvec_iter_all.
3
4 --- a/libcfs/libcfs/crypto/bio.c
5 +++ b/libcfs/libcfs/crypto/bio.c
6 @@ -29,7 +29,11 @@
7  static void __llcrypt_decrypt_bio(struct bio *bio, bool done)
8  {
9         struct bio_vec *bv;
10 +#ifdef HAVE_BVEC_ITER_ALL
11         struct bvec_iter_all iter_all;
12 +#else
13 +       int iter_all;
14 +#endif
15  
16         bio_for_each_segment_all(bv, bio, iter_all) {
17                 struct page *page = bv->bv_page;