Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1892460ybl; Sun, 18 Aug 2019 13:00:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6pugmloyow/tiU2m6Z5gscnAVV0ZpbtJ0JXqOoMgTYjgIe/VFfV09BvV9dNEtPyKzqlRM X-Received: by 2002:aa7:946d:: with SMTP id t13mr21421421pfq.121.1566158434629; Sun, 18 Aug 2019 13:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566158434; cv=none; d=google.com; s=arc-20160816; b=LdiYbFaPhKRBl8jYomJO4dJ6cjm0mNRz351u+sG7k4J2lb+V9TajAuqTXs5E39PhoH pNvDVcbCsLEU5KOKJD0AHJ8rBuLEI0caSfBeA569HRd4C/Q5jkiscR7BlWtg/1GLgHtc kkR4CIhZej9/bojztea/e22E6ZCxHhEDQktK09M7Y0YykRRFW8hKjoyNov+UM00FBSlv RaAfwMthnTgY+3Okkk8glCrt9dXAPB9EKhTF+C2zPF4qBdlit7EmyiYdIS9AGdyWyFcg e69qDaOR4efDWZQpvlkDUP2CW7rg2t8+nyopWPaZ+Iqa92kXTGu7RsS3JKaDq9KYesnu ZgWw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OOdaQ3Y1UMODtL7IlKujR0VdVVo4BsF1PHOf0vyDCEk=; b=trJyLW/il9pylAu0qXRNFs/W0QcYPWzwtKxIMKGwWmzL9pelIcctSRFgpwKngpPEs0 vXd3wh6NAfXY0gQVD34cN9dgzTzHBOjpEsTuAOaolIIlfmYE5npLQnkkKWF1E0dtYlsq JgXLG8wao//jgY4hjwfIG1pREqP7+Od4+ZfiQkj70euovnCSvuuuhnF5LdZpmCPH5A33 UKr+Yaac15wKY0WK/B32W6S16o3B56pah73Qoyi48QlBFXenef72pWIMQ7Z9R16GmlVJ x4g/mRgdYwyyWHGhqE0D0puNI63hylYZqLYuCWHT8zHKBcDqgqOWUieAAWJ3pSkuJhFW OsVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SnKaNuRn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si2916350pgp.397.2019.08.18.13.00.20; Sun, 18 Aug 2019 13:00:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SnKaNuRn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbfHRT7N (ORCPT + 99 others); Sun, 18 Aug 2019 15:59:13 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43303 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfHRT7M (ORCPT ); Sun, 18 Aug 2019 15:59:12 -0400 Received: by mail-pg1-f196.google.com with SMTP id k3so5629526pgb.10 for ; Sun, 18 Aug 2019 12:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=OOdaQ3Y1UMODtL7IlKujR0VdVVo4BsF1PHOf0vyDCEk=; b=SnKaNuRnHt/L6jr+prABwlBFB7rPkwIoFUeGfETvUKgl56MYOBao69wU8gKBM4Zd4H kNNVYrtljpMzuoHgZogsfIEU3l0//1Tkz/XFHrRmeXcnNeYjvdeZM4vMNGklqFweHxVs s9fLLEfZmtJq81sYYwx9LO66pEWILb6O2KNaqJsCQsYUS2vGqKYvCWwkc/xyC4MEqXTa hCnsKmJRph4IpNqO4sbTYpkzTyzM0Pfv55ROJTTRvdrvypDapE+8bPEHi84Ai3v1L2TW LQUm6QeAxElBg7mFG0D753dO1qTj8UWdubCjVQmiIAHpIvV68xvNgIkMIUzBnNLuRKad jNTQ== 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:content-transfer-encoding :in-reply-to:user-agent; bh=OOdaQ3Y1UMODtL7IlKujR0VdVVo4BsF1PHOf0vyDCEk=; b=uiU72nneFfbiMk5WmGPdC8zNU+gP2cyd4oVURm0+VHL2omWjUyg0Ep2Km163s1cnH4 nudyUa4zKSAg0KvDyCMozSFMNXu9ju3DJJFVFF58kbBCiMo8BgVurrxmQNOcivlK4MtC wu2lMygXIHXGluYufkFj8k5aTbWdsQQqIg66BM4/yysnAMG3FaZT/kI/xOp3L0NHOypg W/GNsFHBo259McKd/8PfymsFBxXPj+FT6ns3krl+c3Iy0g3ItBZ0oWxWpuKBRvGog/S+ n/OVhn41Nu+C4Fiu96Bs2K1Hx+6En4RlUEPm/sJdGgtxTJRNQGWuQ0AqxCA26WfJTbGm JQ2A== X-Gm-Message-State: APjAAAWMFzMxBibGeMLcnCMTfZzDqGNJcODixZqPspEYZ35tHQsNwS/w go/rZWicA3qzQ+Vb1zZX604= X-Received: by 2002:aa7:8202:: with SMTP id k2mr21313582pfi.31.1566157883100; Sun, 18 Aug 2019 12:51:23 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.34]) by smtp.gmail.com with ESMTPSA id y14sm23518034pfq.85.2019.08.18.12.51.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Aug 2019 12:51:22 -0700 (PDT) Date: Mon, 19 Aug 2019 01:21:15 +0530 From: Bharath Vedartham To: sivanich@sgi.com, jhubbard@nvidia.com Cc: jglisse@redhat.com, ira.weiny@intel.com, gregkh@linuxfoundation.org, arnd@arndb.de, william.kucharski@oracle.com, hch@lst.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [Linux-kernel-mentees][PATCH v6 1/2] sgi-gru: Convert put_page() to put_user_page*() Message-ID: <20190818195115.GB4487@bharath12345-Inspiron-5559> References: <1566157135-9423-1-git-send-email-linux.bhar@gmail.com> <1566157135-9423-2-git-send-email-linux.bhar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1566157135-9423-2-git-send-email-linux.bhar@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC'ing lkml. On Mon, Aug 19, 2019 at 01:08:54AM +0530, Bharath Vedartham wrote: > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). > > This is part a tree-wide conversion, as described in commit fc1d8e7cca2d > ("mm: introduce put_user_page*(), placeholder versions"). > > Cc: Ira Weiny > Cc: John Hubbard > Cc: J?r?me Glisse > Cc: Greg Kroah-Hartman > Cc: Dimitri Sivanich > Cc: Arnd Bergmann > Cc: William Kucharski > Cc: Christoph Hellwig > Cc: linux-kernel@vger.kernel.org > Cc: linux-mm@kvack.org > Cc: linux-kernel-mentees@lists.linuxfoundation.org > Reviewed-by: Ira Weiny > Reviewed-by: John Hubbard > Reviewed-by: William Kucharski > Signed-off-by: Bharath Vedartham > --- > drivers/misc/sgi-gru/grufault.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c > index 4b713a8..61b3447 100644 > --- a/drivers/misc/sgi-gru/grufault.c > +++ b/drivers/misc/sgi-gru/grufault.c > @@ -188,7 +188,7 @@ static int non_atomic_pte_lookup(struct vm_area_struct *vma, > if (get_user_pages(vaddr, 1, write ? FOLL_WRITE : 0, &page, NULL) <= 0) > return -EFAULT; > *paddr = page_to_phys(page); > - put_page(page); > + put_user_page(page); > return 0; > } > > -- > 2.7.4 >