Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp543850imu; Mon, 26 Nov 2018 14:44:35 -0800 (PST) X-Google-Smtp-Source: AJdET5e2CXagE4AkszCbQqGW5JsAJuJvh1Dt21Zs9xvWihv25F5Dc67ZXf7hO+BWL/O0qE/coML9 X-Received: by 2002:a62:6c89:: with SMTP id h131-v6mr30019927pfc.12.1543272275787; Mon, 26 Nov 2018 14:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543272275; cv=none; d=google.com; s=arc-20160816; b=jZ8fJN0331h65W/rRJmaL7Dj1xBr9j9phvsufcghavwyok3ypd6sKw+PVq/sW/px+H L5vsmgZO/i/8NKJSp0vrUhZYLYT9p5ky2Y4ux+2qMxYTYiZRR4bFxHuQrT3yafhlU4bt An2QdQkRGutTR6v6HM/OzMMfbWsWiy5nA9KeHd1vvayHqJ6qxmCSZ6nf6UqxIwqxVeka Y/x8vgoZjw0gal8yU5sK380liYq7uwur38XagX7onzsuW6ikTg3KKv5oODdQpJB/utfN 15N2CRMEghne8Ieq/uhVNr5+HrDabboPFSFx0Q5NUwngJnc5iIWBWzwyHfeWefnueSQT SxKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YuH1w73FA6WYLZ5PA5S14thQJO6eyI0QOFLNT60OTJc=; b=FeEQk/W3D0sP4ngwjJ78JAtDo1EtXqU/cVM96dYxtMUk7y4pSgzz7+5LCwj4/1eKvD PeIc17Xt/k9uyHvEnlZfCk4r0Oiv2zWUVONGQA1CXtGyg41B+0zXOaN5yxaC01cTL1wy P+tqeo7b88nXtxWY/maC1fKRd8nIAMf5ZfmVGIbivgSxx+swiogl76Suo5WYtf2WmSc6 KkAVVZ0Ohqd8Ao5ggvTAwnmynehHbFvJPRz4TJxr3uKYdNIDTjrYZcYdc1FrdrDJwB0U YoeZvDhLaW6CtLzB1wEHsG1nRcwdY0bmm9Dw0D6OcglQZTVVOHTLGrv+OpHGJtkn8y8S 9Xqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=Bx1j+lqw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p187-v6si1758330pfb.127.2018.11.26.14.44.20; Mon, 26 Nov 2018 14:44:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=Bx1j+lqw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727487AbeK0JiV (ORCPT + 99 others); Tue, 27 Nov 2018 04:38:21 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46586 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727087AbeK0JiV (ORCPT ); Tue, 27 Nov 2018 04:38:21 -0500 Received: by mail-pg1-f193.google.com with SMTP id w7so6834218pgp.13 for ; Mon, 26 Nov 2018 14:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YuH1w73FA6WYLZ5PA5S14thQJO6eyI0QOFLNT60OTJc=; b=Bx1j+lqwud+6YMhgE8fvAnnofXRSIVMmc4+dX0jlcXSpQCJIk4B+bUhHBljIazVRGJ Yk7s53K7vLYUdH1weyn8juWVj7JnXzi4lGAfPAqHbV7l99W7b0q0X6Xn3PZqUWOcrEkd mZuZVvlCcEBBZzZGHo/SlfB6fKZZiy8Kphak3sinkPySYb/ehv1xJQG2UrhQdwAVIpJw SqRls5qx0kDzq2oTQD6DeCRgGHBuLLy8Sf+pc5mZcJ7ip/ry2XBAAlCV/u0qQg7CnysJ Vjndg8quzQ7mwS0+GVH6zYEhFL676afI+yrinTaascDgESuKXzWQNI44jdwT8ZuzLxT3 YTVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YuH1w73FA6WYLZ5PA5S14thQJO6eyI0QOFLNT60OTJc=; b=gN7mk5RtfMt8oKjYrmwQVPjIp0CxRsp0AwTyx/61zDhwgIs0ceHzK+43PREa040vSq /C/kM0JdLktiu7v5s05lRT2zak4MRtxf7SjjHgU/I3yl1Z1qcXFXmzyPRmPNcIt1cD9o r7ZfdCV3gk9U8NZXmS8S1RV2Ru2yoSKQFimcLLPd6CnLBwDJCI+ThvAKw4jIAjQ5xXey CjLzaxypvi7nxFPb6M7Rt6CuNgp6zhFp2KHxLmPIfktKtLoj6XAQ856IWZDYKe3DCtZY i+fyQ5djwvMfA62zuZPCIt72rMrRVO3mNf5EjJPzYFjvPrtQNyjb/isO8jVFv/Nfdgzh AiBQ== X-Gm-Message-State: AGRZ1gLoZxJvu+s/9XTi7spgn8i00c/wLrNyXqRX0h0NT5p+5fHfgfng CNX/UunC9J9u6KKwG8k03vOAhw== X-Received: by 2002:a62:7687:: with SMTP id r129mr29880739pfc.17.1543272161181; Mon, 26 Nov 2018 14:42:41 -0800 (PST) Received: from vader ([2601:602:8b00:55d3:e6a7:a0ff:fe0b:c9a8]) by smtp.gmail.com with ESMTPSA id i4sm2029143pfj.82.2018.11.26.14.42.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 14:42:40 -0800 (PST) Date: Mon, 26 Nov 2018 14:42:39 -0800 From: Omar Sandoval To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , Omar Sandoval , Sagi Grimberg , Dave Chinner , Kent Overstreet , Mike Snitzer , dm-devel@redhat.com, Alexander Viro , linux-fsdevel@vger.kernel.org, Shaohua Li , linux-raid@vger.kernel.org, David Sterba , linux-btrfs@vger.kernel.org, "Darrick J . Wong" , linux-xfs@vger.kernel.org, Gao Xiang , Christoph Hellwig , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V12 15/20] block: allow bio_for_each_segment_all() to iterate over multi-page bvec Message-ID: <20181126224239.GL30411@vader> References: <20181126021720.19471-1-ming.lei@redhat.com> <20181126021720.19471-16-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126021720.19471-16-ming.lei@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 26, 2018 at 10:17:15AM +0800, Ming Lei wrote: > This patch introduces one extra iterator variable to bio_for_each_segment_all(), > then we can allow bio_for_each_segment_all() to iterate over multi-page bvec. > > Given it is just one mechannical & simple change on all bio_for_each_segment_all() > users, this patch does tree-wide change in one single patch, so that we can > avoid to use a temporary helper for this conversion. > > Reviewed-by: Christoph Hellwig Reviewed-by: Omar Sandoval > Signed-off-by: Ming Lei > --- > block/bio.c | 27 ++++++++++++++++++--------- > block/bounce.c | 6 ++++-- > drivers/md/bcache/btree.c | 3 ++- > drivers/md/dm-crypt.c | 3 ++- > drivers/md/raid1.c | 3 ++- > drivers/staging/erofs/data.c | 3 ++- > drivers/staging/erofs/unzip_vle.c | 3 ++- > fs/block_dev.c | 6 ++++-- > fs/btrfs/compression.c | 3 ++- > fs/btrfs/disk-io.c | 3 ++- > fs/btrfs/extent_io.c | 9 ++++++--- > fs/btrfs/inode.c | 6 ++++-- > fs/btrfs/raid56.c | 3 ++- > fs/crypto/bio.c | 3 ++- > fs/direct-io.c | 4 +++- > fs/exofs/ore.c | 3 ++- > fs/exofs/ore_raid.c | 3 ++- > fs/ext4/page-io.c | 3 ++- > fs/ext4/readpage.c | 3 ++- > fs/f2fs/data.c | 9 ++++++--- > fs/gfs2/lops.c | 6 ++++-- > fs/gfs2/meta_io.c | 3 ++- > fs/iomap.c | 6 ++++-- > fs/mpage.c | 3 ++- > fs/xfs/xfs_aops.c | 5 +++-- > include/linux/bio.h | 11 +++++++++-- > include/linux/bvec.h | 30 ++++++++++++++++++++++++++++++ > 27 files changed, 125 insertions(+), 45 deletions(-)