Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2211462imu; Sun, 18 Nov 2018 18:40:52 -0800 (PST) X-Google-Smtp-Source: AJdET5dR/s+Q7BGvNKZKSvWf4vHgdZaNGfELbaYh+/p3q0c9V9cTxJ3fjcbexsi6hgMabnNP1K/J X-Received: by 2002:a62:c101:: with SMTP id i1mr4797037pfg.80.1542595251991; Sun, 18 Nov 2018 18:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542595251; cv=none; d=google.com; s=arc-20160816; b=HMDeEViaLYRJFVMzgMLznm24V6b7LrjACBoJ/FK+CmQSocRsDUg1U34qSsNag87VYP qO6teATUZmKNgsD4diwa/HGXSBhl8gNs0/NAGgTAnmHMAWyKrVTIMds2ExtsiGa+x/qf BXiLjQobMnHEvr1yKfaJ3iThT90ZW/uP7+0J9dEpGuJ/nXworglxkMh24IUy0QaneWw6 WPteD8lPYbFEyZFIIKCWICK3qgKwwx73od5pYibPb6r9NqexcuU6ZrdWzi/FwK6FCjy3 H3pAHjZZmRIP6zjg9uv+Xb1/u3vAa99FBtLRaUMVnHwOvOWNcRGehBDlG1EGKNsG7+od 2qGg== 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=fTzIZCMzbHNxt6VshoJi5nMSf7qZHNub3yvj2TWggZ8=; b=Xf7tjqxG/1EXXWBDIm37wkZnCXqNrIJxKQoM55EJ3U8pY4rY2vOWD/1+CUzoNkw3bx O2qeV2Yc07FYrBOykNrRNHTRc9R+JH7d9OsaWkXS07Hqq5OnVmYt+N7y9q8yGWwF3ldC VIJkMSMljwEMD2r7r+BxFO9+i3hTDsHRBV5GxQnYx1pbvDwyBeOhQlXpr3ETt3UHZoHe R/HnhGdfvSZqnfkCduUHJJQUK5s3pplv3XqYuMjw4IylQbEOtckMdQSHGLBVGEQmQiib Aq3g9jUWwU4s3rAZjnFJnVI8qih++dCGDdknuQ8XDKKONiEW5MrdJpFUQAgNg/6EqhYi KOcg== 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 l3si4136591pld.229.2018.11.18.18.40.34; Sun, 18 Nov 2018 18:40:51 -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 S1728006AbeKSMqB (ORCPT + 99 others); Mon, 19 Nov 2018 07:46:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41372 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbeKSMqB (ORCPT ); Mon, 19 Nov 2018 07:46:01 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0080B3DDB6; Mon, 19 Nov 2018 02:23:56 +0000 (UTC) Received: from ming.t460p (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9D94A5C57B; Mon, 19 Nov 2018 02:23:33 +0000 (UTC) Date: Mon, 19 Nov 2018 10:23:28 +0800 From: Ming Lei To: Christoph Hellwig Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Kent Overstreet , Mike Snitzer , dm-devel@redhat.com, Alexander Viro , linux-fsdevel@vger.kernel.org, Shaohua Li , linux-raid@vger.kernel.org, linux-erofs@lists.ozlabs.org, David Sterba , linux-btrfs@vger.kernel.org, "Darrick J . Wong" , linux-xfs@vger.kernel.org, Gao Xiang , Theodore Ts'o , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V10 01/19] block: introduce multi-page page bvec helpers Message-ID: <20181119022327.GC10838@ming.t460p> References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-2-ming.lei@redhat.com> <20181116131305.GA3165@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181116131305.GA3165@lst.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 19 Nov 2018 02:23:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 16, 2018 at 02:13:05PM +0100, Christoph Hellwig wrote: > > -#define bvec_iter_page(bvec, iter) \ > > +#define mp_bvec_iter_page(bvec, iter) \ > > (__bvec_iter_bvec((bvec), (iter))->bv_page) > > > > -#define bvec_iter_len(bvec, iter) \ > > +#define mp_bvec_iter_len(bvec, iter) \ > > I'd much prefer if we would stick to the segment naming that > we also use in the higher level helper. > > So segment_iter_page, segment_iter_len, etc. We discussed the naming problem before, one big problem is that the 'segment' in bio_for_each_segment*() means one single page segment actually. If we use segment_iter_page() here for multi-page segment, it may confuse people. Of course, I prefer to the naming of segment/page, And Jens didn't agree to rename bio_for_each_segment*() before. So what is the solution we should take for moving on? > > > + * This helpers are for building sp bvec in flight. > > Please spell out single page, sp is not easy understandable. OK. Thanks, Ming