From patchwork Sat Oct 29 08:08:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9403261 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7335A60587 for ; Sat, 29 Oct 2016 08:18:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6073A29D0F for ; Sat, 29 Oct 2016 08:18:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 540FE29D76; Sat, 29 Oct 2016 08:18:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F244229D0F for ; Sat, 29 Oct 2016 08:17:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966450AbcJ2IQO (ORCPT ); Sat, 29 Oct 2016 04:16:14 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36095 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966390AbcJ2IQL (ORCPT ); Sat, 29 Oct 2016 04:16:11 -0400 Received: by mail-pf0-f196.google.com with SMTP id n85so3391734pfi.3; Sat, 29 Oct 2016 01:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8LNQrT6ISq36SySJG7qZotF2JHpG/ggXPHFXd6PQwgU=; b=JS7A4BlnzLcYJFo8/SKYBq4phboCCzRUe5qQyxPwc6kgUMETv1ibCHrzr9NRMlsJEH TPZq0o9HjyEsFbNNVZQ2oF9ZJ528w9Ie8jlwAVNM+FsOfcr5Q4q/+C2u6u/KB+KFU1wF fguRH9gJ5mIHj2QlYF8RXrP9tS2IYXQ6MAUqjZKtdOnv1yFv0Neohvhu9hbt2DrCIAK3 q58/NoVJGsud7b5Si/t8jGZfblZtMoBbRu1wwvn/D4I1iEtvh5nx/Un4guN6MYrabYo9 9ERFUGkM3oAdRz7MWRDg47LehCl4Cj6EHcfNw2R1ogyD1rQhAyzuXbtMu4baddk04Br7 NUvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8LNQrT6ISq36SySJG7qZotF2JHpG/ggXPHFXd6PQwgU=; b=dUGJl+97VNZXf6DfuegBebhSVeymfubDDtaG7amcTRPRfZW2Pxt9OdjYwos0CUJzn2 HX9epCAD6slqxOzWo09brh/ROsbbZZJ8T5qvBF0lwHBLy2J/o96rq+YLHueSczviwkMn 6CnL4/reTXDeKzcqP8UNOFqiSEOZ47Q18AW276O7ZqHxr+sstk0ElkMXW9c0mfN+INgU VO65tGRqb+FZhkDPNTup9cpgFGUO00xDAe2lYtgAlIVdi7iIpExhXDKLaA4MGziImZb+ cPbBgv3gCLSI8Ze/fCqm+L2lRuE6BdP9kBBWI7ppszaJt5JNmJbc6EZigvnDVx5fzl2v 8S4Q== X-Gm-Message-State: ABUngvfdvwLg5wEEJN8fCj7KcXfhYmIjyZjBQQP8lNcUfdGGHrF8NDeKGItsTRST1UM/Vg== X-Received: by 10.99.7.210 with SMTP id 201mr26341990pgh.51.1477728970833; Sat, 29 Oct 2016 01:16:10 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id m129sm23567753pfm.13.2016.10.29.01.16.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:16:10 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , "Kirill A . Shutemov" , Ming Lei , "Theodore Y. Ts'o" , Jaegeuk Kim Subject: [PATCH 56/60] fs: crypto: convert to bio_for_each_segment_all_rd() Date: Sat, 29 Oct 2016 16:08:55 +0800 Message-Id: <1477728600-12938-57-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> References: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 98f87fe8f186..ed007ebbd1ab 100644 --- a/fs/crypto/crypto.c +++ b/fs/crypto/crypto.c @@ -411,8 +411,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_rd(bv, bio, i, bia) { struct page *page = bv->bv_page; int ret = fscrypt_decrypt_page(page);