Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2448749imu; Mon, 19 Nov 2018 00:16:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/WzYSFm7XYGcL6VhjVYgvGy+1bg63n3z64izN8230hsUzxtDWyUjRN6LK/TV2RJVA9ZJP+i X-Received: by 2002:a17:902:7c0a:: with SMTP id x10mr1241820pll.65.1542615385602; Mon, 19 Nov 2018 00:16:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542615385; cv=none; d=google.com; s=arc-20160816; b=dsgHSnYr2fupo20/neNAhJkf5Fjh3ct+lc/WmczpARxnKCb2j3Pxe90LEDPdklUfDf 0S9X8CRwl8uMZ3XmaGpxD3aPY7RA/37jypNXXRNTB0gpZ9uGX81NgXXFeZJXtpVGiF6P lyvf7Y1X7ObKg+w8Q4kzs1WGQvghvKqlpPkbMqJpTU1QNUmv1cDBf/Wxfm/ClDM0y8Qn B3fqeWc453czPtgGUr1Sc1wBw86SiMto+h4LZU1Di4sRt6fsbZ9tnl2w84vWH0SJ4N0F 8z52YtazgnrCOGmZsVg6AgLK2Mn+6GRVjA5nRpUOSIhtfXT8/aVQn9jQ8HzC+fONPYgC sNLQ== 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=SIQp9ncQbljVJNRsSDadX4RVVWKdLtFqT6BDPyAF+oM=; b=rE0x59w0s71+Pfgl+6hnHED3F4KZleEIvxL5WqhzzE29es1T0ESodsOrsTBFQb/IQ7 7/lZ8ra43E+RuudzkgOYYTJRMHCp9nlGPDm+G7pRP1kOywjxoM8P/w2iMdUUNAyi7Jod cRx2zOIqWbky8scohMZnIj4f7kFpDdSEh0+7XxCKDHZKYdx04qBYMBH83fusejaXwAms /ZCxFI9//zEgdLV3fs+2qclhwnjRFjHpYm6a5tpiUFTisriYUYuMIGsuTvgCz2FqDOMT RWpo3/SyxUX2+5eQHk0LsgKlR29PjyIsYOlyplH9xXJal2Ph2AmEXTk6TgnhuXhKwmPb taJA== 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 t5si20989903pgm.79.2018.11.19.00.16.10; Mon, 19 Nov 2018 00:16:25 -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 S1726906AbeKSSi1 (ORCPT + 99 others); Mon, 19 Nov 2018 13:38:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51824 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbeKSSi1 (ORCPT ); Mon, 19 Nov 2018 13:38:27 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31699C02835E; Mon, 19 Nov 2018 08:15:34 +0000 (UTC) Received: from ming.t460p (ovpn-8-26.pek2.redhat.com [10.72.8.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 756081974E; Mon, 19 Nov 2018 08:15:13 +0000 (UTC) Date: Mon, 19 Nov 2018 16:15:09 +0800 From: Ming Lei To: Omar Sandoval 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 , Christoph Hellwig , 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 08/19] btrfs: move bio_pages_all() to btrfs Message-ID: <20181119081507.GA16736@ming.t460p> References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-9-ming.lei@redhat.com> <20181116002356.GC23828@vader> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181116002356.GC23828@vader> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 19 Nov 2018 08:15:34 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 04:23:56PM -0800, Omar Sandoval wrote: > On Thu, Nov 15, 2018 at 04:52:55PM +0800, Ming Lei wrote: > > BTRFS is the only user of this helper, so move this helper into > > BTRFS, and implement it via bio_for_each_segment_all(), since > > bio->bi_vcnt may not equal to number of pages after multipage bvec > > is enabled. > > Shouldn't you also get rid of bio_pages_all() in this patch? Good catch! thanks, Ming