lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 26 Jun 2017 20:10:30 +0800 From: Ming Lei <ming.lei@...hat.com> To: Jens Axboe <axboe@...com>, Christoph Hellwig <hch@...radead.org>, Huang Ying <ying.huang@...el.com>, Andrew Morton <akpm@...ux-foundation.org>, Alexander Viro <viro@...iv.linux.org.uk> Cc: linux-kernel@...r.kernel.org, linux-block@...r.kernel.org, linux-fsdevel@...r.kernel.org, linux-mm@...ck.org, Ming Lei <ming.lei@...hat.com> Subject: [PATCH v2 47/51] fs: crypto: convert to bio_for_each_segment_all_sp() Signed-off-by: Ming Lei <ming.lei@...hat.com> --- fs/crypto/bio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/crypto/bio.c b/fs/crypto/bio.c index 6181e9526860..d5516ed19166 100644 --- a/fs/crypto/bio.c +++ b/fs/crypto/bio.c @@ -36,8 +36,9 @@ static void completion_pages(struct work_struct *work) struct bio *bio = ctx->r.bio; struct bio_vec *bv; int i; + struct bvec_iter_all bia; - bio_for_each_segment_all(bv, bio, i) { + bio_for_each_segment_all_sp(bv, bio, i, bia) { struct page *page = bv->bv_page; int ret = fscrypt_decrypt_page(page->mapping->host, page, PAGE_SIZE, 0, page->index); -- 2.9.4
Powered by blists - more mailing lists