Return-Path: Received: from verein.lst.de ([213.95.11.211]:49688 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727772AbeKPXZ2 (ORCPT ); Fri, 16 Nov 2018 18:25:28 -0500 Date: Fri, 16 Nov 2018 14:13: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, 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 01/19] block: introduce multi-page page bvec helpers Message-ID: <20181116131305.GA3165@lst.de> References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-2-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115085306.9910-2-ming.lei@redhat.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: > -#define bvec_iter_page(bvec, iter) \ > +#define mp_bvec_iter_page(bvec, iter) \ > (__bvec_iter_bvec((bvec), (iter))->bv_page) > > -#define bvec_iter_len(bvec, iter) \ > +#define mp_bvec_iter_len(bvec, iter) \ I'd much prefer if we would stick to the segment naming that we also use in the higher level helper. So segment_iter_page, segment_iter_len, etc. > + * This helpers are for building sp bvec in flight. Please spell out single page, sp is not easy understandable.