Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp764814imu; Thu, 22 Nov 2018 05:07:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/WuEda6rUa6PD7tGcUSxleAAFTl7bHg2q3mcObh6Tf0izd4dnaP/ZERoSlBsKUoz9OPF721 X-Received: by 2002:a17:902:144:: with SMTP id 62-v6mr10879051plb.142.1542892076127; Thu, 22 Nov 2018 05:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542892076; cv=none; d=google.com; s=arc-20160816; b=RPruxQg2DMGITrNGepX3ise7DGIkYFMSyy6UsLrOLKa7CphMOH6mwWRJDye6saB2tt hiVr6vKk0u6xes3RhBxoqAKy1zoXLywk5DoSVxXdR2962skuXmdc53lqLuA8TXtSyyNF 0+ih8b8lfyrYyeTGOJo4jHCYPGzPphn6h8djKu9oqTWsKDhEgIsOPjeVZG6rFtDjRIP4 PH7623UnurveErAzhWhEExkqHLwRYt6nk+PFHzVdtXKtmZRMV8R+iRq1pDrgtrqXSytH d9uRSQDso2ER/9CvyVa3Pm9S7CiUyeP7mybUEBS3xRGtkr9rr3fnBxi57q2GDkHbf4hc 6mdQ== 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=78QFixybRRtpHgmrUeaAxDCtWfGo30AdQy5ATsgJNRE=; b=vBrDkb0Tm6aaRHWuY1jZcjsveYGtTDbJOQHf6zW/WZGvXtnUqn8HabXWLc3omk8djt 74dFYscR4dGwpRjaLZaIxYaJTFsQl1Cs0bW9m5TBrzNdjvy8VvHJoIbDgG8JsiI/NzO2 CsVbjhXxkz4iD5kaWTQEU78bu8WZ8QLBCXIe5jcQIRIg9E3A5YQYqU/4v134POsy3Gfx dPz0ookYyqNZcRTRlSzx5vDLwghWzaP8bxMHndpWFGjbMybOzLqWbR1ehmU2n3Izzlcs +lNM7ymiAzpjkn3TEb0osDQjElWvPjAb5t+meHWyE7G5Punf/X3rlPueRVAXnDLvrDn1 Nt7g== 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 g9si28510044pfd.86.2018.11.22.05.07.40; Thu, 22 Nov 2018 05:07:56 -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 S2391291AbeKVLqg (ORCPT + 99 others); Thu, 22 Nov 2018 06:46:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53436 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732372AbeKVLqg (ORCPT ); Thu, 22 Nov 2018 06:46:36 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CBB017F3EC; Thu, 22 Nov 2018 01:09:42 +0000 (UTC) Received: from ming.t460p (ovpn-8-27.pek2.redhat.com [10.72.8.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C2BCE5D738; Thu, 22 Nov 2018 01:09:17 +0000 (UTC) Date: Thu, 22 Nov 2018 09:09:13 +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: <20181122010912.GB20814@ming.t460p> References: <20181121032327.8434-1-ming.lei@redhat.com> <20181121032327.8434-3-ming.lei@redhat.com> <20181121131928.GA1640@lst.de> <20181121150610.GA19111@ming.t460p> <20181121160811.GA4977@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181121160811.GA4977@lst.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 22 Nov 2018 01:09:43 +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 05:08:11PM +0100, Christoph Hellwig wrote: > On Wed, Nov 21, 2018 at 11:06:11PM +0800, Ming Lei wrote: > > 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? > > Your above grep statement seems to catch every use of struct bvec_iter, > due to the *. > > Most uses of bvec_iter_ are either in the block headers, or are > ceph wrappers that match the above and can easily be redefined. OK, looks you are right, seems not so widely used: $ git grep -n -w -E "bvec_iter_len|bvec_iter_bvec|bvec_iter_advance|bvec_iter_page|bvec_iter_offset" ./ | wc 36 194 2907 I will switch to that given the effected driver are only dm, nvdimm and ceph. Thanks, Ming