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: 9403233 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 C3FB36070E for ; Sat, 29 Oct 2016 08:16:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B08822A5ED for ; Sat, 29 Oct 2016 08:16:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A61E42A643; Sat, 29 Oct 2016 08:16:26 +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 640C82A60D for ; Sat, 29 Oct 2016 08:16:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966477AbcJ2IQP (ORCPT ); Sat, 29 Oct 2016 04:16:15 -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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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);