Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9693327ybi; Wed, 24 Jul 2019 08:21:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhvqFlyRJ9xy8J5Uv0uBQ+SMUc/cHCLdWkw9FmT0t4miBaawUYX4jUFYu3wFdu0wF8kP7Q X-Received: by 2002:a62:79c2:: with SMTP id u185mr12069545pfc.237.1563981713342; Wed, 24 Jul 2019 08:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563981713; cv=none; d=google.com; s=arc-20160816; b=Y4NZCwdp7ewkK+kyfH6NH46RSvsC5tPu6Nmdd4bdYIDcXv3kPbLaPsv3cD/G3RKPuA +vxoxJ7PcR1LIuCTBVffBSRMDoJ+y1Cj37ejJFJcReqrzvp/jDPAHKArRTLoOR7dHBvw t+L3Tkxbq0GqPZr/8tK4u4t7Kp9J6G0ekiImUXS5/1TqmYUznCtEL2XYpUDZdGlLR151 3LC2vXz0hXIAuFzJyv/uhIjMnCNezmLx2m9ndW+qjV+lrbKkyBbTXOe2dSA0StttNAJ8 rzaEcRjNWkHAkhDelLALuU84X9/9ZoFWgStxZCSfzI0iGDgCS54XYciq74oK8chnEmoG IJTA== 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=nqvsbl2w9ubgA5WmXqlNPepTd4gyiLD5l4bjkw0rY64=; b=quHNzexEIkN4zFjovdrqr63HDqR6F7P6q4rvoQhHAGC56RWEqXOn+xFkyhMd7d3T/o RFg9xyJi7QWrTyYTXOxAxXoOPfm1ZY1i7JQssJLBqZJekzwIi1WMjzVHH9xsdlCac+Wz zH1vOPCTgwmNOqI++1tzA3BCrfMyC+4fGFuBuVd6N0xOZTOeB/lMnFNUK0JL1VD/A4kg F2VL2uzuy+Jb6ntjGHjpORnn6/TK5s64ddKjG4i/tud2k3c+fAXQAMpX14pFdo5bBrNC Dn5iQy84+ihR//Sno1l20ydi0QcdewrI3GnkNXBNUBfjk/ukMFuEvYgmBrRbqK43Qa2o Y9+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="sbZR1J1/"; 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 72si13289499plb.177.2019.07.24.08.21.24; Wed, 24 Jul 2019 08:21:53 -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="sbZR1J1/"; 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 S1727651AbfGXLlg (ORCPT + 99 others); Wed, 24 Jul 2019 07:41:36 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41040 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727378AbfGXLlf (ORCPT ); Wed, 24 Jul 2019 07:41:35 -0400 Received: by mail-pf1-f194.google.com with SMTP id m30so20834068pff.8 for ; Wed, 24 Jul 2019 04:41:35 -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=nqvsbl2w9ubgA5WmXqlNPepTd4gyiLD5l4bjkw0rY64=; b=sbZR1J1/xqSfxGhYdGe1aFC5Zkv0bIcVVCiEERD1YNPQcvJu+dI2eJwklfIzWnOinC wgzv6UwGtypD3oNxaNtqomTVBIb1YN0lcxHk60raGqu7gC9U3yuj0AO5dyeTmlDq2wsE tz9vqtq+shNHs/qAQoJ/Xohi6S0hphqNq9B5rBnNOtWxxfa2CCfaiIStlWKpcoFNQcOA NHaJuSgyUQB6cc3bli+/HQb9uC9mmSODW57RXUZx+2W8FXHIwa7POYv9odL8WsPcNIa4 ol+z5m2bndZA7uWkCFqwSXnG8oKhXqGUmzpnAycP/R6yUpBIR57luL0M0fwvfH2wLoah 6uIQ== 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=nqvsbl2w9ubgA5WmXqlNPepTd4gyiLD5l4bjkw0rY64=; b=lwE/f+mf+lp97iEYsobGU5QR6Qi0rO2Gct9RYrF5cDRQIFV549+HE6r/QI0Sj5eIX9 M0m1zemLdk6Idm9Wa0nMYPztEFHCTzxWfK7twZaQU0r0G+/0NZquhmdx84sbZ9P8YlYK sex5lrOm5f6hpJ1egwSh0KNTd89eL9S1b80OmO6TybbiYvQmDYurEbzDj+NFXJUAS/u8 8UfAqW/tLvFX2FXIKyqdUmBxlr0E7ZL6T5EfHp4HHkm0onjZmadNElSSTqtnqU8SB/ku BumVe1kXFeLWF6lJ0fI9hR/b8hIuU9kco4NSss3VRtMYHCK5nRdZIdXj6bsHZmlKCvmC k04w== X-Gm-Message-State: APjAAAVeccSSF+PmjZQvVr815SmL9r/tcVX4u2OOxdzzf6+7abdAL0/j +VxVKrD0/vQitkvEmyg4Uoc= X-Received: by 2002:a65:6850:: with SMTP id q16mr44415063pgt.423.1563968494767; Wed, 24 Jul 2019 04:41:34 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.34]) by smtp.gmail.com with ESMTPSA id b36sm70730923pjc.16.2019.07.24.04.41.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Jul 2019 04:41:34 -0700 (PDT) From: Bharath Vedartham To: sivanich@sgi.com, arnd@arndb.de, jhubbard@nvidia.com Cc: ira.weiny@intel.com, jglisse@redhat.com, gregkh@linuxfoundation.org, william.kucharski@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Bharath Vedartham Subject: [PATCH v2 1/3] sgi-gru: Convert put_page() to get_user_page*() Date: Wed, 24 Jul 2019 17:11:14 +0530 Message-Id: <1563968476-12785-2-git-send-email-linux.bhar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1563968476-12785-1-git-send-email-linux.bhar@gmail.com> References: <1563968476-12785-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(). 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: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Reviewed-by: Ira Weiny Reviewed-by: John Hubbard 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