Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5459397imu; Mon, 26 Nov 2018 00:18:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/WsuPcdd/NnNKx7h0oS267ln58KJTVgHvOLXgW2orti5xtL0HYT4UelYW7V7VmNwI89S6fs X-Received: by 2002:a62:b511:: with SMTP id y17mr4506071pfe.199.1543220315953; Mon, 26 Nov 2018 00:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543220315; cv=none; d=google.com; s=arc-20160816; b=QGqPRlwN4ibTJV+cY15OX2DFf56nZPmpAK9uueOWyQXes0wshxZCrnLrNzYIr1tyat qw2H8wQIqc+BmNmLM1BsLP0EzKGxcTxoqPHCBqwBIo+vxiBFUjMUnbaLpAZhwdc0kWpR GfOZWbFT7jvZC54nuKNQStcKOOq1IjHi2mNFLEfPIXNthX7leFQbiaM51qjTnSR/8aSw ZUJ5shHykXvocPOtwtRqD2xR6tC2QKHQevK/eTak25UtQYr5FDsm2RbgR3iykXREfAPC EKi7B6EDiOz0sz+mCJz268cYaV6lPxZm92/ojJKb1fF6SZ3cisUaADCdH08pnNYgLh/7 OZww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DL1JU2Jl6dHmu7oOgaXiyAFBJJhQbFK6TWDQpuzmsr4=; b=owbx6AiSOHZbZIlhwo0maWFOBRTuC2HIPWsZDmcBMRl5zoVgBq3sFCDorR9QADCbji zIkc4JVa2LZNsWwAD6h17dwEZKb2+ovAYtNXxYAKfpdwgcAZz/+pDNNbzrPv3/3LmESv 98BG/MCTyK/gcUtngtK0YvN+Or1gscwPJ2A9HkLIMGXegNI02It3prLLODgX8fgEAJs7 pMgtC8bz+urBrGJAcBw0Pl1qYDVFYz42uEw8VP8c5nHiQKsJ98IyxxYO9GXcycH7cak+ qEezqOHN0tIgRTJkN/85vIBKaUxHnTbsLk6baxA+Zv/6KxabvHydJ9poAbTXZabzPzq+ Uvqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OPgJf0II; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si40087413plx.278.2018.11.26.00.18.20; Mon, 26 Nov 2018 00:18: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=@gmail.com header.s=20161025 header.b=OPgJf0II; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726398AbeKZTKv (ORCPT + 99 others); Mon, 26 Nov 2018 14:10:51 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42964 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbeKZTKu (ORCPT ); Mon, 26 Nov 2018 14:10:50 -0500 Received: by mail-lj1-f194.google.com with SMTP id l15-v6so15677134lja.9; Mon, 26 Nov 2018 00:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DL1JU2Jl6dHmu7oOgaXiyAFBJJhQbFK6TWDQpuzmsr4=; b=OPgJf0IIpylcteRNfDc3IqVd95zj+0p2O6hBuUB8D3uwtsDz/KrvNzhOvR4cw8fSmf 1HHWDwFzsaAENxmFNKK+e1RhvMAuhAgf1/p0uCXIqEx6JdoL2JWxl8tnHgisByCyB7DX hBzdAxtbDHUlcUwnJONnm2ifPBzoVGfPDq/78lxTtTfRbtfiAM/Vd/sfmtPhIdgY8I+o 2tWwwVA9NJ/gP2AndTm/NReUOhg510NEzWNKvTJSNCjMkbd7euf2L8TdUZTurfktp5xq qP+/pxlBBYTWaixtzzGVUHeg0TAIOOo8PrD2tJiyB7hq3gyeiBdYxn4uhZczS179gF19 vf1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DL1JU2Jl6dHmu7oOgaXiyAFBJJhQbFK6TWDQpuzmsr4=; b=F/uThOZyatIp0yHmlZb0JjM1HBZ0JxhuYJ3j60HsqhetcMLXmOLlhiGUNOMF8EJYFU X/AdyN5KWGt9NESLY6tTKIhK0ko+5SCgwU1tRPXBJOKpTuHeMzoTu/h20KO7sbE0kMBP RPvDwnNC+qF8BE1h32TUPFt1niBflNsyS7RWU55J5i4T7FL5242rAi8LpKAYv6Gq9ry5 6p7plxFRl0Mt5NAqHBfs2QadPVweE+0uaVxnmx+gT21/xr/2TrqT+4QbhQLDugBAaxJh I5/MwcTz6QaInR8IkxGjoymnvJ7ZWOgiB2SR2rFphoQOVz3ExaLzrfx4+Un5CoeRDmDJ c1cg== X-Gm-Message-State: AA+aEWauZe+U1RlUyz8pFmXz08Z6Ybl6khQvyMEy2SgYBqQ5lSkzBFH7 BqTVynFMafxotetlqOjucnCDv39ug4fB7fPtcz4= X-Received: by 2002:a2e:5054:: with SMTP id v20-v6mr15822680ljd.45.1543220247340; Mon, 26 Nov 2018 00:17:27 -0800 (PST) MIME-Version: 1.0 References: <20181126021720.19471-1-ming.lei@redhat.com> <20181126021720.19471-7-ming.lei@redhat.com> In-Reply-To: <20181126021720.19471-7-ming.lei@redhat.com> From: Miguel Ojeda Date: Mon, 26 Nov 2018 09:17:16 +0100 Message-ID: Subject: Re: [PATCH V12 06/20] block: rename bvec helpers To: ming.lei@redhat.com Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel , Linux-MM , "Ted Ts'o" , osandov@fb.com, sagi@grimberg.me, dchinner@redhat.com, kent.overstreet@gmail.com, snitzer@redhat.com, dm-devel@redhat.com, Al Viro , linux-fsdevel@vger.kernel.org, shli@kernel.org, linux-raid@vger.kernel.org, David Sterba , Linux Btrfs , darrick.wong@oracle.com, linux-xfs@vger.kernel.org, gaoxiang25@huawei.com, hch@lst.de, Ext4 Developers List , colyli@suse.de, linux-bcache@vger.kernel.org, ooo@electrozaur.com, rpeterso@redhat.com, cluster-devel@redhat.com Content-Type: text/plain; charset="UTF-8" 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 3:20 AM Ming Lei wrote: > > We will support multi-page bvec soon, and have to deal with > single-page vs multi-page bvec. This patch follows Christoph's > suggestion to rename all the following helpers: > > for_each_bvec > bvec_iter_bvec > bvec_iter_len > bvec_iter_page > bvec_iter_offset > > into: > for_each_segment > segment_iter_bvec > segment_iter_len > segment_iter_page > segment_iter_offset > > so that these helpers named with 'segment' only deal with single-page > bvec, or called segment. We will introduce helpers named with 'bvec' > for multi-page bvec. > > bvec_iter_advance() isn't renamed becasue this helper is always operated > on real bvec even though multi-page bvec is supported. > > Suggested-by: Christoph Hellwig > Signed-off-by: Ming Lei > --- > .clang-format | 2 +- Acked-by: Miguel Ojeda Cheers, Miguel