Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2281811imu; Wed, 21 Nov 2018 09:13:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wag7Im1eWdlZAMc8RReEDg45S978NjwBDH0npuKmOHouZjbqsvi0imSDVF9eydCq9k7C2A X-Received: by 2002:a17:902:7281:: with SMTP id d1-v6mr7577713pll.284.1542820394609; Wed, 21 Nov 2018 09:13:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542820394; cv=none; d=google.com; s=arc-20160816; b=CGzl2dg/RsUA/1kS51HhRFGpXXIgAYfqHjnS9rwyJI18dB5S+05IiVwiBAxvICAxHg z+Lkh+ICzll5yl8YIbJWCnXwu2+GhAZzZVtnDlMdKhVYe9msrVYeAVdjEzDOIsT2Oswn eqgaRoqXqmIqLa2dY5D8i1bHNFFofjqdBlbwPqksns0zXc2/AUMXJUFYWkScIiZZmWpl RrUo9GN9cH6cGlFKRW4fB/0iMMFR/+Wp4S5K4WultIv0D3+tzo3Hrq1+cYaavzKFdx7h niAolcLJz4oLpvD2fNXdKrsx/6SNvTCboEg8lJlNdDXpXKfxfoRfAVhc1OiFLx+XWgew fN2g== 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=o5O5OS+W5MlVAAPFJwnChz773zAuWrfwXUmaZYesdK0=; b=C6qceoM5WDMJAo/xqua9UJ1fWm4P565YQ4NyFqwk0tFABTh5nu9zjuZRPpQczfHp1A YFmPnTXUfGIsAqaxRqYwrz0UEGJCVqiLteLbU+qwD+filW2Q8kT/uvBV6i8ZfCGXOXnz ABPp5A4v24o+Y8O2lP6ir9pw+g7B6xLBOJ+xGf80Ln8qXGw4leRqTGHhRN6ERdgbdZhp Vd3kJDtvhjiGXsMbnEj8MDybABb21hppG+dBR3rnOAh/FylrydI3kvt/cVm92zDZA1bO vFQcAjU1zD/sa1Y3kNEXYRqqZTlvPXa1i00DS03dQeYQxYG8Km1o3f5ewryKvRGKsnKm LXqQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si18853452pln.368.2018.11.21.09.12.24; Wed, 21 Nov 2018 09:13:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730839AbeKVAfk (ORCPT + 99 others); Wed, 21 Nov 2018 19:35:40 -0500 Received: from verein.lst.de ([213.95.11.211]:51539 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728499AbeKVAfk (ORCPT ); Wed, 21 Nov 2018 19:35:40 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 26C0468C22; Wed, 21 Nov 2018 15:01:06 +0100 (CET) Date: Wed, 21 Nov 2018 15:01:05 +0100 From: Christoph Hellwig To: Ming Lei 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 , Christoph Hellwig , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V11 11/19] bcache: avoid to use bio_for_each_segment_all() in bch_bio_alloc_pages() Message-ID: <20181121140105.GB2323@lst.de> References: <20181121032327.8434-1-ming.lei@redhat.com> <20181121032327.8434-12-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181121032327.8434-12-ming.lei@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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 11:23:19AM +0800, Ming Lei wrote: > bch_bio_alloc_pages() is always called on one new bio, so it is safe > to access the bvec table directly. Given it is the only kind of this > case, open code the bvec table access since bio_for_each_segment_all() > will be changed to support for iterating over multipage bvec. Looks good, Reviewed-by: Christoph Hellwig