Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1339463imm; Wed, 13 Jun 2018 18:20:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLyHOiEucEXC+FLHV8StqU3FHdtpBIjaB5q5VFVxYl1MMtl4m2Gt+wWExGZRsl1R07Ncmtn X-Received: by 2002:a17:902:3c5:: with SMTP id d63-v6mr573523pld.163.1528939219464; Wed, 13 Jun 2018 18:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528939219; cv=none; d=google.com; s=arc-20160816; b=oAA3MqHIcs/Q6lyE3yssucybTzLQHoKS+/pnPGj4UwiwBF/zcy9HlTt2BARWk3PCk3 RnDteQcFhtrKkq5vn+pUR4iIAgOfQlqk6PkcyjWV9juqiHq5W2cq9s5zzwtuD0u+/jzL 5m38Jxm/cl7+sbDb+LpoGNdcwcYx4cbkNnr+y+qqcWSmg26hgRimPAOUiWZkYSM2rsP7 qalm6lbpPLQOzp0u0YCxjT++cIO5QycN/wPd8GDysQB1uqvNzbb7Im8DcwWlS/2oyO9t 93U3awy3QSGfy0WyFkRaFMTU09lmJHvuVka+YGVmqHaWtWnIVuDDe2jUcRyUSMRM6kHA MH3Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=HV4xO03V55kbL6+sK9tFqYACAzfNlGDRpBSSNB0tVao=; b=uzt3VjcfQ0WwgU6/3D1nZRF+b5Mj6PZMf0+wDDOjl8ZPJ6ePkaPvnnLtqrRdV0dzgH L60i/nC6y3LHFjRVl0SJ2P8TdEzzoafUh1bvJDWY/0jgen5EgOsQJJBUHKwsrzna6oV3 4mn5p7TlWZdHrN7ZM6OfKzSAgq1Le/7zv33ZDy8QJSEDEFPz/oq1kLA02HIZFx3YRwVe bRkOJqSkU/rqR4Yjhck1wlACbZIypO82t6RihvSRiX/T4LbIcW1t/gCMiCWz4ljujL8U jDdIRlFItmCAU3OBKRojDEucOdbpkJ6QDLqUmgPR9yUYosc1fa/iPE86Va7k2nXrwg0T elYA== 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 g5-v6si3399991pgu.432.2018.06.13.18.20.05; Wed, 13 Jun 2018 18:20:19 -0700 (PDT) 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 S935930AbeFNBTW (ORCPT + 99 others); Wed, 13 Jun 2018 21:19:22 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33892 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935725AbeFNBTU (ORCPT ); Wed, 13 Jun 2018 21:19:20 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2646840201D0; Thu, 14 Jun 2018 01:19:19 +0000 (UTC) Received: from ming.t460p (ovpn-12-71.pek2.redhat.com [10.72.12.71]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 82EF22023487; Thu, 14 Jun 2018 01:19:03 +0000 (UTC) Date: Thu, 14 Jun 2018 09:18:58 +0800 From: Ming Lei To: Christoph Hellwig Cc: Jens Axboe , Alexander Viro , Kent Overstreet , David Sterba , Huang Ying , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , "Darrick J . Wong" , Coly Li , Filipe Manana , Randy Dunlap Subject: Re: [PATCH V6 00/30] block: support multipage bvec Message-ID: <20180614011852.GA19828@ming.t460p> References: <20180609123014.8861-1-ming.lei@redhat.com> <20180611164806.GA7452@infradead.org> <20180612034242.GC26412@ming.t460p> <20180613144253.GA4693@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180613144253.GA4693@infradead.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 14 Jun 2018 01:19:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 14 Jun 2018 01:19:19 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 13, 2018 at 07:42:53AM -0700, Christoph Hellwig wrote: > On Tue, Jun 12, 2018 at 11:42:49AM +0800, Ming Lei wrote: > > On Mon, Jun 11, 2018 at 09:48:06AM -0700, Christoph Hellwig wrote: > > > І think the new naming scheme in this series is a nightmare. It > > > confuses the heck out of me, and that is despite knowing many bits of > > > the block layer inside out, and reviewing previous series. > > > > In V5, there isn't such issue, since bio_for_each_segment* is renamed > > into bio_for_each_page* first before doing the change. > > But now we are at V6 where that isn't the case.. > > > Seems Jens isn't fine with the big renaming, then I follow the suggestion > > of taking 'chunk' for representing multipage bvec in V6. > > Please don't use chunk. We are iterating over bio_vec structures, while > we have the concept of a chunk size for something else in the block layer, > so this just creates confusion. Nevermind names like > bio_for_each_chunk_segment_all which just double the confusion. We may keep the name of bio_for_each_segment_all(), and just change the prototype in one single big patch. > > So assuming that bio_for_each_segment is set to stay as-is for now, > here is a proposal for sanity by using the vec name. > > OLD: bio_for_each_segment > NEW(page): bio_for_each_segment, to be renamed bio_for_each_page later > NEW(bvec): bio_for_each_bvec > > OLD: __bio_for_each_segment > NEW(page): __bio_for_each_segment, to be renamed __bio_for_each_page later > NEW(bvec): (no bvec version needed) For the above two, basically similar with V6, just V6 takes chunk, :-) > > OLD: bio_for_each_segment_all > NEW(page): bio_for_each_page_all (needs updated prototype anyway) > NEW(bvec): (no bvec version needed once bcache is fixed up) This one may cause confusing, since we iterate over pages via bio_for_each_segment(), but the _all version takes another name of page, still iterate over pages. So could we change it in the following way? OLD: bio_for_each_segment_all NEW(page): bio_for_each_segment_all (update prototype in one tree-wide & big patch, to be renamed bio_for_each_page_all) NEW(bvec): (no bvec version needed once bcache is fixed up) Thanks, Ming