Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp521503imu; Mon, 26 Nov 2018 14:20:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XKKnxLU76UIk4Ayp16ysrc0LvD4gfVjov3zqoSDCDp0J+7vLCO4g2eXGCkJY7x+wRWQp/S X-Received: by 2002:a62:69c4:: with SMTP id e187mr23516037pfc.50.1543270854428; Mon, 26 Nov 2018 14:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543270854; cv=none; d=google.com; s=arc-20160816; b=Jna5ggFcZlqnxvrKSjtpBvf9lFr6t1GVFlq1YQmXi2GQyOeavBOVOqWnPF8ST+RPmB gZnxFOUkNp0cSRemEro2k5MREJ7BJbGWq7RWrcf2TTqUHqxLYbuMhSEgK4wKhnjCRNPE YbqK/Band3vva/fRFDtAbhu2q7bTfXthf8MzhCowQjszt+0CxJjBI8b0qgcZnUhK/j3/ F5pPTY9jy+YQnWFR9CDtvqgxYINiHucWfCddP/a43+rQ3byRi/gsxiPArcE5dImmhHvQ 00CUADc9QMMQ32IUXyfHkaubhcgqwV/coTj5d9mXD3zwm7v0cmSPNkXRGrfNEJHjCR54 yFuQ== 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:dkim-signature; bh=nnRkIidyTMCkCU8s4XbXhP39Wm67YCXxFtSWO/jSdU8=; b=EaPhtgVN8A1v+7s8IQsKFe9lrmt0ti+gBWtKWjR+3peT4ApdAr66764R2x0aq0lOTt sqrnpyfpIKdR33TnJQqYqI5eF5/as0OSZTI671g+vyIg11poRgKeCmOq6rAL66if09IC n5UX3i1vkjEk4nXG/X4bBsXMWvDFkbIbWOJzoCWpxFCw0ZRmOCaRy1NdyxHkJ2K13bFc tL0vmcGnf2ngNa7r/znU/X6ebCvX8pH5OvVZaTvwrlpf7rLzxyaBXFZJYSbdzDpBWKTi Aae+eW2i6jlFIwdZ6uCZ8Nopq5+KB7xIHHpHP/Z5y0vDwlGF3NJBg2odPbI+jvesgSuH sE2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=vkeurhET; 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 g21si1477304plo.435.2018.11.26.14.20.39; Mon, 26 Nov 2018 14:20:54 -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; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=vkeurhET; 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 S1727388AbeK0JOR (ORCPT + 99 others); Tue, 27 Nov 2018 04:14:17 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38807 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbeK0JOQ (ORCPT ); Tue, 27 Nov 2018 04:14:16 -0500 Received: by mail-pl1-f196.google.com with SMTP id e5so14543740plb.5 for ; Mon, 26 Nov 2018 14:18:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nnRkIidyTMCkCU8s4XbXhP39Wm67YCXxFtSWO/jSdU8=; b=vkeurhETkMrogwJmGI3eGa62QwDe4P+LcCcTlzyvWMH3ofHRs0MY6V2ZMtGLgSIJu8 5TKpaf4v3xugYKohlsROKlKr07KQ+fgqw8xPMYAd536f4Bcp9YPfRYXrheq/uNZ/k/Hb wJwj0EW2vCOTGMz6LZxSHYJYkjrZeU+oOJuwmjTOrb2V2IsCRhZ682+Sz0kpWUHauGPg MLttGBLspbnFV4OAasq9Um7tqAJHWSITMjVpHsB7yZ2axltVtfxE7yy5GyNpYGRJpHTd MRHF3qI73pJ/mlDJxZyYTiTvRj8vsLSXGxzswrshkk4UkJIMQ7P+yk2ARm3KaeDpD2oQ elNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nnRkIidyTMCkCU8s4XbXhP39Wm67YCXxFtSWO/jSdU8=; b=OjVuaYjP5aoJbcAA7fz3px2prnwjNEE/7RfIR7gflmDvMcBWqjsiUFkRckFBjn2dk2 SyDs5TzqPlzar8O5Asouq/5wABTU9Z2Cj/3toQ1DwdsXsUlWloC7QRXb6It7gHJ7U/t2 p5mSlGkj2HlcAVsvKMtYDLtHCXaGy+YEbq5m1FsTnX7N9+DOTt+t11HR0YBJWHSip/4w rm2FLJk8+eszaK3RTLLAtTGM8BiAptuqzJRQnBwmGtDASPxeS+EbqHLcFKijEI1UzYN8 yA1D6bxLgBpcZ9K9LmmPazOskEqwv8R5NRUKqD0YknWEKLikhQJowaI1ZylpcsCO4Lf2 fzQA== X-Gm-Message-State: AA+aEWaXVaykgFlft7ZGZHRcnoB1B61zHipFfEeN8UrnV9yIJP3RnjmL 4/z3dr/nJjQj0l8Cph4uZ6YrPw== X-Received: by 2002:a17:902:8214:: with SMTP id x20-v6mr28569658pln.224.1543270720790; Mon, 26 Nov 2018 14:18:40 -0800 (PST) Received: from vader ([2601:602:8b00:55d3:e6a7:a0ff:fe0b:c9a8]) by smtp.gmail.com with ESMTPSA id u69sm1721000pfj.116.2018.11.26.14.18.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 14:18:38 -0800 (PST) Date: Mon, 26 Nov 2018 14:18:35 -0800 From: Omar Sandoval 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 V12 06/20] block: rename bvec helpers Message-ID: <20181126221835.GG30411@vader> References: <20181126021720.19471-1-ming.lei@redhat.com> <20181126021720.19471-7-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126021720.19471-7-ming.lei@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 26, 2018 at 10:17:06AM +0800, Ming Lei wrote: > We will support multi-page bvec soon, and have to deal with > single-page vs multi-page bvec. This patch follows Christoph's > suggestion to rename all the following helpers: > > for_each_bvec > bvec_iter_bvec > bvec_iter_len > bvec_iter_page > bvec_iter_offset > > into: > for_each_segment > segment_iter_bvec > segment_iter_len > segment_iter_page > segment_iter_offset > > so that these helpers named with 'segment' only deal with single-page > bvec, or called segment. We will introduce helpers named with 'bvec' > for multi-page bvec. > > bvec_iter_advance() isn't renamed becasue this helper is always operated > on real bvec even though multi-page bvec is supported. > > Suggested-by: Christoph Hellwig Reviewed-by: Omar Sandoval > Signed-off-by: Ming Lei > --- > .clang-format | 2 +- > drivers/md/dm-integrity.c | 2 +- > drivers/md/dm-io.c | 4 ++-- > drivers/nvdimm/blk.c | 4 ++-- > drivers/nvdimm/btt.c | 4 ++-- > include/linux/bio.h | 10 +++++----- > include/linux/bvec.h | 20 +++++++++++--------- > include/linux/ceph/messenger.h | 2 +- > lib/iov_iter.c | 2 +- > net/ceph/messenger.c | 14 +++++++------- > 10 files changed, 33 insertions(+), 31 deletions(-)