Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1511916ybx; Thu, 31 Oct 2019 11:40:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTJUnDg4Ol5Nzq6vmErmEZqEtOM50hgin1TbTNjqLAddyImj7d1oK+OnB4sLsNB00OIM20 X-Received: by 2002:a17:907:40bd:: with SMTP id nu21mr5763708ejb.190.1572547219267; Thu, 31 Oct 2019 11:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572547219; cv=none; d=google.com; s=arc-20160816; b=rotts1+QmA2ZuYi0q5PzOyMFgmj6dMEjWLI3h78qkDrkuBjWVR+7IBDd8Z+0Ad2c9C IOYpQ9GGOZx4vFqfbNZuhQG73Idz78YfTtMXAse+pIh9o9atLYSAUlfjZ6OwMHj9PKjO V7AOry0Qntk5Cok3Rg27NBNS9SskKEfp8KzrFXDsnXJUN4AZF3gVTjdKdycmhXMSAx1J 7JVZ41S/PqIlcjx2lzo1jsFpdMSJlMM8YG2aFjYyfMF3u6ZZ1djdz8Wguw4cXrUOa6iG 5jA37Ae7+h9fvdzvcRRP9glZlvFMbN+BnbUsx0HEVsVA6o2KTzJX99E03yF2Jb5qx6Fm G/vg== 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=e5VGp/0zv1Xolvpb5mp2WXn7OfAik5Y3Y2g+H97FOCU=; b=gHHsiR9hn3dlKwSAIkJ/jU/5PbquJ3iB75h1Xa6R05iZe1GtxYdOk7oSuvhqzldqDF n4rtgEwDg5mcnXUfuJwnIn+gxJDr7+NHkuyBZZgitNXyM7aTb8vcYNujXCZZ0yUtGAAo TbDDZpQ1fHLSluyH9ieTuHVwj+J5YJNVqFFpDmdjjFoGGQqydd03w6W1IBZgtZqXOqLx f5Mdh5E5suQeXZGULfKCxvTiwIICXHGDpOvrj62isYyhpBP8600XiM8u0Yce697VN9I2 YjgYEq3aeBDx0SlKyVjYkYWGhccybdtOL+wCYIY3CiolvYOIYTAsyC64UVs4KNTPwAbQ xRTA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si2639105edj.354.2019.10.31.11.39.55; Thu, 31 Oct 2019 11:40:19 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729379AbfJaShA (ORCPT + 99 others); Thu, 31 Oct 2019 14:37:00 -0400 Received: from mga14.intel.com ([192.55.52.115]:53184 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729027AbfJaSg7 (ORCPT ); Thu, 31 Oct 2019 14:36:59 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2019 11:36:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,252,1569308400"; d="scan'208";a="212547050" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by orsmga002.jf.intel.com with ESMTP; 31 Oct 2019 11:36:56 -0700 Date: Thu, 31 Oct 2019 11:36:56 -0700 From: Ira Weiny To: John Hubbard Cc: Andrew Morton , Al Viro , Alex Williamson , Benjamin Herrenschmidt , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Christoph Hellwig , Dan Williams , Daniel Vetter , Dave Chinner , David Airlie , "David S . Miller" , Jan Kara , Jason Gunthorpe , Jens Axboe , Jonathan Corbet , =?iso-8859-1?B?Suly9G1l?= Glisse , Magnus Karlsson , Mauro Carvalho Chehab , Michael Ellerman , Michal Hocko , Mike Kravetz , Paul Mackerras , Shuah Khan , Vlastimil Babka , bpf@vger.kernel.org, dri-devel@lists.freedesktop.org, kvm@vger.kernel.org, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, linux-rdma@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org, linux-mm@kvack.org, LKML Subject: Re: [PATCH 03/19] goldish_pipe: rename local pin_user_pages() routine Message-ID: <20191031183656.GD14771@iweiny-DESK2.sc.intel.com> References: <20191030224930.3990755-1-jhubbard@nvidia.com> <20191030224930.3990755-4-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191030224930.3990755-4-jhubbard@nvidia.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 03:49:14PM -0700, John Hubbard wrote: > 1. Avoid naming conflicts: rename local static function from > "pin_user_pages()" to "pin_goldfish_pages()". > > An upcoming patch will introduce a global pin_user_pages() > function. > Reviewed-by: Ira Weiny > Signed-off-by: John Hubbard > --- > drivers/platform/goldfish/goldfish_pipe.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c > index cef0133aa47a..7ed2a21a0bac 100644 > --- a/drivers/platform/goldfish/goldfish_pipe.c > +++ b/drivers/platform/goldfish/goldfish_pipe.c > @@ -257,12 +257,12 @@ static int goldfish_pipe_error_convert(int status) > } > } > > -static int pin_user_pages(unsigned long first_page, > - unsigned long last_page, > - unsigned int last_page_size, > - int is_write, > - struct page *pages[MAX_BUFFERS_PER_COMMAND], > - unsigned int *iter_last_page_size) > +static int pin_goldfish_pages(unsigned long first_page, > + unsigned long last_page, > + unsigned int last_page_size, > + int is_write, > + struct page *pages[MAX_BUFFERS_PER_COMMAND], > + unsigned int *iter_last_page_size) > { > int ret; > int requested_pages = ((last_page - first_page) >> PAGE_SHIFT) + 1; > @@ -354,9 +354,9 @@ static int transfer_max_buffers(struct goldfish_pipe *pipe, > if (mutex_lock_interruptible(&pipe->lock)) > return -ERESTARTSYS; > > - pages_count = pin_user_pages(first_page, last_page, > - last_page_size, is_write, > - pipe->pages, &iter_last_page_size); > + pages_count = pin_goldfish_pages(first_page, last_page, > + last_page_size, is_write, > + pipe->pages, &iter_last_page_size); > if (pages_count < 0) { > mutex_unlock(&pipe->lock); > return pages_count; > -- > 2.23.0 > >