From patchwork Sat Oct 29 08:08:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9403281 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 6C2E960587 for ; Sat, 29 Oct 2016 08:19:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58F0729D0F for ; Sat, 29 Oct 2016 08:19:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BEAF2A58C; Sat, 29 Oct 2016 08:19:55 +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 ECA5629D0F for ; Sat, 29 Oct 2016 08:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966057AbcJ2ITh (ORCPT ); Sat, 29 Oct 2016 04:19:37 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36025 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966359AbcJ2IP4 (ORCPT ); Sat, 29 Oct 2016 04:15:56 -0400 Received: by mail-pf0-f196.google.com with SMTP id n85so3391179pfi.3; Sat, 29 Oct 2016 01:15:56 -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=gaExdFHjOxhxg17YwtT0nFG8kF4UW0BrSqQZ+d/7YFs=; b=kSdGNabffmi6ckL72aDFzy1/kpF4E/5oYrH6MNpcFCPG8/hCRweWissHFoP7YJh38o Lqgzrtfx5u03ds6LN9SYgAg4w3/zxGQdd3W+i1uSQt29OjG7ee+sRHn+lxeCjdpcwTQk NlfwPGF+N36sVulXmYeL1RYW9YxoIOCudBdeZIp/9Txakq2LSkOKapUAKvfSOnaXtEAk EsqNUSKw4VBS8XW2odThs3RfZ2vsvhWUotapCG0nrODMYrG3aNun26ViB3G5t5fXWx7r PTcPQbnYA2Sy1tngzyQojb4q1ro9VhZnmXsmghZDb4S1DVFGfe6HSsHgXqNH4fZta7sr Uowg== 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=gaExdFHjOxhxg17YwtT0nFG8kF4UW0BrSqQZ+d/7YFs=; b=dMbxT14HUABj7MW6CZbMVbCwnwW6Odwzm+Qu6vf9CiCW6YLWpPXh3H7tb8siIMEEJA f9tElEFW2lZDmg1s2a0EOoe2/PH2B2pOFktPshHg6+IZmuYNuW5itFIVjUyFPirYKMth JQtnL2X/7n3e20TGUPYPHDjC5CaIHtFKGed3FVC/+YxEYjIve/BFuYXoNuy6nU7o2JAK hBTngjXaAgs/E2RlkL41UhC0xwC5Jabz+HMnkLkNjr1dZvSmR6dEWURkJGynlYcnHRjX aKaxOYLGwvL+4GawOTKNNYKxPNoZ2OAF+Wr75u5ljZ7/s6znHGk4ho761+ufCfPh+5eR UPeQ== X-Gm-Message-State: ABUngvc6GwD5dgzjMNqfVYOKDtOkF3b9DO1tUJtmnd534BI0hOIW21rfAZhR3f0N41v1Ig== X-Received: by 10.98.101.71 with SMTP id z68mr31531522pfb.13.1477728955720; Sat, 29 Oct 2016 01:15:55 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id ht5sm23579210pad.16.2016.10.29.01.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:15:55 -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 , Joern Engel , Prasad Joshi , logfs@logfs.org (open list:LogFS) Subject: [PATCH 52/60] logfs: convert to bio_for_each_segment_all_rd() Date: Sat, 29 Oct 2016 16:08:51 +0800 Message-Id: <1477728600-12938-53-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/logfs/dev_bdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c index f05a02ff43e6..b81bd2154253 100644 --- a/fs/logfs/dev_bdev.c +++ b/fs/logfs/dev_bdev.c @@ -55,10 +55,11 @@ static void writeseg_end_io(struct bio *bio) int i; struct super_block *sb = bio->bi_private; struct logfs_super *super = logfs_super(sb); + struct bvec_iter_all bia; BUG_ON(bio->bi_error); /* FIXME: Retry io or write elsewhere */ - bio_for_each_segment_all(bvec, bio, i) { + bio_for_each_segment_all_rd(bvec, bio, i, bia) { end_page_writeback(bvec->bv_page); put_page(bvec->bv_page); }