Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2077473imu; Wed, 21 Nov 2018 06:26:16 -0800 (PST) X-Google-Smtp-Source: AJdET5dDvKjypcHFDfNNt/l8gLL/VZqnkjJ9cOsPBdimjFANENQqbqkE6SxKPVvuOA/K86x0XY48 X-Received: by 2002:a62:43c1:: with SMTP id l62mr7188007pfi.22.1542810376112; Wed, 21 Nov 2018 06:26:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542810376; cv=none; d=google.com; s=arc-20160816; b=mk5AlJP5V1FlJXJ/rwxKCT74V2GP3KSgibRr+pa8Yue6Oc/eWhV1S144BXPHkC06pw XBoZN1Z7Ae57fZlm5rXGmo5O5sjQb9xnduTW9DrSTnjZlYoo9tmJkjf8UXHynM58JD7v /WSJQQyDgEQdOn59P5EQZqVMjbiUKOXEyJzsvF/SJJYl2Ugtodx39J/fO6A8rhWptjAE z+SYDsrOb/EViyFAvXkJgIoQ5JP0itR/ANaci1IoNljgJorl2Y6oXNhRgCrsyeWJuIwo 00RxOn6XJBcVcQ5mgRzylhd0QQRgygvAKxwfaLFV0PYHnm/NVQtMMSW7SYPUwcSXMy7J Ia5g== 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=VAsO+Hu24hF5LeEaxmnpHUw8/dYnu1JdeVAgiq2W5kc=; b=SqkWkA6Asi1Z353SE33qmgYSvuxc1boJxwdzmke0+6sU3EPJlrff8UN0k/wRgblS3R /DMstgsAETV/bahJBjwRKLR2i/inCtKxVya1r22V+r1BrRRmUDX+UUo9WHZd/Pjl1MlE wEC8mTxoyD+d+M7/UBmDoMRFo3BGsaRCmpNshe3vqaqemCg2YB2B3D2VbXO5crGRNKU9 9j0Wimxc9yvT6aKgWupibxznIUsEK+TOcTiSLXujd9EN3Kc7+x6rnvlgWrwY1nnnwShI h1tRqefnNfCX5fR9x9g0H12sjufDhMUqn9H60wXSHE7794N0gE57MWkUCs8kCHLWpNVA sCQQ== 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 a185si43504074pge.404.2018.11.21.06.25.48; Wed, 21 Nov 2018 06:26:16 -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 S1730986AbeKUXxw (ORCPT + 99 others); Wed, 21 Nov 2018 18:53:52 -0500 Received: from verein.lst.de ([213.95.11.211]:51324 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbeKUXxw (ORCPT ); Wed, 21 Nov 2018 18:53:52 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 95D2868C19; Wed, 21 Nov 2018 14:19:28 +0100 (CET) Date: Wed, 21 Nov 2018 14:19:28 +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 02/19] block: introduce multi-page bvec helpers Message-ID: <20181121131928.GA1640@lst.de> References: <20181121032327.8434-1-ming.lei@redhat.com> <20181121032327.8434-3-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181121032327.8434-3-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:10AM +0800, Ming Lei wrote: > This patch introduces helpers of 'segment_iter_*' for multipage > bvec support. > > The introduced helpers treate one bvec as real multi-page segment, > which may include more than one pages. Unless I'm missing something these bvec vs segment names are exactly inverted vs how we use it elsewhere. In the iterators we use segment for single-page bvec, and bvec for multi page ones, and here it is inverse. Please switch it around.