Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933048AbcL0QHI (ORCPT ); Tue, 27 Dec 2016 11:07:08 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35966 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932984AbcL0QGr (ORCPT ); Tue, 27 Dec 2016 11:06:47 -0500 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , "Theodore Y. Ts'o" , Jaegeuk Kim , linux-fsdevel@vger.kernel.org (open list:FS-CRYPTO: FILE SYSTEM LEVEL ENCRYPTION SUPPORT) Subject: [PATCH v1 46/54] fs: crypto: convert to bio_for_each_segment_all_sp() Date: Wed, 28 Dec 2016 00:04:55 +0800 Message-Id: <1482854706-14128-15-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482854706-14128-1-git-send-email-tom.leiming@gmail.com> References: <1482854706-14128-1-git-send-email-tom.leiming@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 670 Lines: 22 Signed-off-by: Ming Lei --- fs/crypto/crypto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c index ac8e4f6a3773..4bb1d7eff6f4 100644 --- a/fs/crypto/crypto.c +++ b/fs/crypto/crypto.c @@ -453,8 +453,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.7.4