Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1880545ybl; Sun, 18 Aug 2019 12:40:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3dRtULRmVVnMCAXraeqgJ1VP5aI/LJzbxHKqTVi+LBLkbR3YjiiwZL6TIE+Nqxjy9wTGV X-Received: by 2002:a65:62cd:: with SMTP id m13mr16766762pgv.437.1566157235774; Sun, 18 Aug 2019 12:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566157235; cv=none; d=google.com; s=arc-20160816; b=Yr2Pc792Jq4Dcj3w2qj4us7pYxnuMz+Iub96vJiFKdwaK36wXqwW1c89WNHInrKl63 Cn93pCZDQzdlTRxG6TQO2omQ9SuD8jBtDOn1NJ6HN+ogzsX7Eo9U/xNw8gIOUoCRDkoD E46n/GTS5n2e7SoEiACpuownVB2rcX+hvnVP0y/vBBjgyi9KuE67rlyaysHVgSARKtn5 XM+WpkP0XZv0CStQHkriV8+RQawZlxxcW9S9yuhpSeGxqbRS3HkYFvsCsV+Q1i4QmyeE mrfrD9ecFgOHymQy7neGd9C2DUhSnTmSgwpiPMPkfHqNkZPEkzGmyBF+U1dcKQVQdFDE aHkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tJjwWl4XQTgcmRcDEc+l30pX8XFo75tSFumPFai+auM=; b=Oq/QygNqTDRWCkuuXtIIKMRhpZjfjkOsU2vQE4bCjYuK/lZOacMc31Sq3Nm6BQynDW pt9JV3JvbpEdShT60/uDvZ53X+B5CskcoYehHgcyTgJqx9oWmj7vOxlhvH19xjixqTxI XJXWVYw1gdlznlqcCv2LRDTb7m3Xo9Q6GOKdMuxsR5XCCO7vmo4Jf7Yszz7lIg92BfyV vi8KYuntCmwfZPskwWM6Xr45X13zuUIPk86Ob3IXRpSrdgLD6c8hVlw+lVihiFZdKnAs g/+jGhmhRjCA7FZboI6oIKMn0LAzi/yy8GU7sQKZDLnirnWh0YRzW2juNG/j19dsTBzP NYcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UmY6BiMK; 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 10si8218885pgh.400.2019.08.18.12.40.20; Sun, 18 Aug 2019 12:40:35 -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=UmY6BiMK; 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 S1727127AbfHRTj1 (ORCPT + 99 others); Sun, 18 Aug 2019 15:39:27 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42627 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726005AbfHRTj1 (ORCPT ); Sun, 18 Aug 2019 15:39:27 -0400 Received: by mail-pf1-f193.google.com with SMTP id i30so5832809pfk.9; Sun, 18 Aug 2019 12:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tJjwWl4XQTgcmRcDEc+l30pX8XFo75tSFumPFai+auM=; b=UmY6BiMKjLfJtTbMPr2YL48+gSi6VOnzYOGmB49byG2y+gNWR+LHccMEOjU3uV6rzU vs47bj1Wda0bHM3M+0tVfVnkUn5JeYWMuWoPyJiWhssB5oqJi3lvuowfQ5qRiqzyKByF 037PGyd0fWngnsSpBjBk4owPIqAYkSIl8DR9T1VCkYVvWLNNd/4SLogCYlENV5fXi/GI qnVGwINwsEAhgY5m/Vu9VC+dsD3inyTVFkMorxi2MckhRHGG3v9Saij0nBgVh07rb5wE OqTFjDg2ifQD/yQ8Uj40xNeOboRbiBcdRommtkDta5yDTw5vCbifx/WTDfU1ckZxVYSw PlKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tJjwWl4XQTgcmRcDEc+l30pX8XFo75tSFumPFai+auM=; b=iGL9NwcGvYKpir+yGE1w4233WgrHiRVSMi9TiLM7a+1xOZijbGZL43r++M9tayzvwr J1GYlhxibZkjOimWjPg5LvgGDoveRBr4tz5x7rCRpyQPl0sj2z9qxANpdRjLHm4MGl0V VG7ow3fc3ivtGsyDFVuFHwkESp4jbEboyFmVgDcUC3hLuGRHscsfbwc122xzmZ0YbnoR RNhotDco8Pcue1VHxry3V7IoYioXfxj0AI71vzVjOpQnPNqB8X6sHxg3dgZCsP3H1JNE G7PdbMtwBif2lPpvuRQ7W/tZGI1RFfqjcSzMxPWXARtrUPR+8FKujwbQjTbb8UgWCPhu PsBA== X-Gm-Message-State: APjAAAUSij76NlyRhQ0F3CZ97Pa6fk5fVPE39X9kpmED20HYXS5A8pgF +LMF99bPtbxBAR7m5soSshPTPD1i X-Received: by 2002:a63:4e05:: with SMTP id c5mr16328693pgb.82.1566157166340; Sun, 18 Aug 2019 12:39:26 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.36]) by smtp.gmail.com with ESMTPSA id k5sm11318890pgo.45.2019.08.18.12.39.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Aug 2019 12:39:25 -0700 (PDT) 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, inux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kernel-mentees@lists.linuxfoundation.org, Bharath Vedartham , linux-kernel@vger.kernel.org Subject: [Linux-kernel-mentees][PATCH v6 1/2] sgi-gru: Convert put_page() to put_user_page*() Date: Mon, 19 Aug 2019 01:08:54 +0530 Message-Id: <1566157135-9423-2-git-send-email-linux.bhar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566157135-9423-1-git-send-email-linux.bhar@gmail.com> References: <1566157135-9423-1-git-send-email-linux.bhar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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