Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2132404imu; Wed, 21 Nov 2018 07:09:57 -0800 (PST) X-Google-Smtp-Source: AJdET5dSwYMbqKj7uHI95QzZpQwyiYXqEOkgkBbpkwHeHFzZP8xHTstoY7Wfz0RlqaEjCxyzOqys X-Received: by 2002:a63:4e41:: with SMTP id o1mr6460941pgl.282.1542812997238; Wed, 21 Nov 2018 07:09:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542812997; cv=none; d=google.com; s=arc-20160816; b=D91sU1Ae8PQuoBCe+cpwrB55vcFEu70GR05RyrdWz/awqgBDyFp1jJwhobuFiKvD7I 7cU3wRO1QVrFIJs1ajWi90XhpNTSR55gpruiORXEqPXq9yJ6hYOnIe27+vhJR23pJIMe z9Q7a/6r3LijCY1NniAl1Oc4at7lkHheiu43xO6KewRnPt1LzsaNELRdnAgJpl7wXBrK M+a5/rl0WYVwnWBz7A8o5Gb/pRZTScmk8j3k9yQZVrSyn437KXn946kzDScC1tmppKE1 bIr4+/yft2GKKFCJWdNLoad9EA3D9SAX+yveaPptpo6EGWmVAigtJJaaji7Ma1yFkDMH jZJA== 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; bh=40GQs05Qd4q97MVvqkOFNXaOkG8TF8vLft3Cvx8+8vo=; b=GeJDmyVffx+UJPwxeiXVo/u92RtgBmX8WwHjSGGfYwl+4VQc440w7us68j44XlC8ep 5dSaSROvbnl+CYfz/6qN8lHMK6QwuDV8BMT7GHiGuEpXL3jW1zhUSd7qgcOyIA+NLo+f FWkOSSLkFbg12/RNE/NrupB3bCkJpC1EvwAt8m56KfPyxnRGpk/9IpkHLD3eisWADM1e A0M4ZtKCe+LxT9z+Xxv/G2aXkW1F5Pzhsrmz3fCuubf3Ek/Uxn31sr0FC/7DQ6b5nOKh ejuevyUDiO69Ch1wWi/Kb2YDb60GlP/Pc7G3meEJkSdRg+GJA4qRKb9oIT7hs3EUkMWY ++FQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si1575651pls.71.2018.11.21.07.09.13; Wed, 21 Nov 2018 07:09:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731219AbeKVBmL (ORCPT + 99 others); Wed, 21 Nov 2018 20:42:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34052 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729828AbeKVBmJ (ORCPT ); Wed, 21 Nov 2018 20:42:09 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65ADB3002F82; Wed, 21 Nov 2018 15:07:21 +0000 (UTC) Received: from ming.t460p (ovpn-8-20.pek2.redhat.com [10.72.8.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0B9468271A; Wed, 21 Nov 2018 15:06:15 +0000 (UTC) Date: Wed, 21 Nov 2018 23:06:11 +0800 From: Ming Lei To: Christoph Hellwig 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 , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V11 02/19] block: introduce multi-page bvec helpers Message-ID: <20181121150610.GA19111@ming.t460p> References: <20181121032327.8434-1-ming.lei@redhat.com> <20181121032327.8434-3-ming.lei@redhat.com> <20181121131928.GA1640@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181121131928.GA1640@lst.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 21 Nov 2018 15:07:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 21, 2018 at 02:19:28PM +0100, Christoph Hellwig wrote: > On Wed, Nov 21, 2018 at 11:23:10AM +0800, Ming Lei wrote: > > This patch introduces helpers of 'segment_iter_*' for multipage > > bvec support. > > > > The introduced helpers treate one bvec as real multi-page segment, > > which may include more than one pages. > > Unless I'm missing something these bvec vs segment names are exactly > inverted vs how we use it elsewhere. > > In the iterators we use segment for single-page bvec, and bvec for multi > page ones, and here it is inverse. Please switch it around. bvec_iter_* is used for single-page bvec in current linus tree, and there are lots of users now: [linux]$ git grep -n "bvec_iter_*" ./ | wc 191 995 13242 If we have to switch it first, it can be a big change, just wondering if Jens is happy with that? Thanks, Ming