From patchwork Fri Aug 2 02:19:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: john.hubbard@gmail.com X-Patchwork-Id: 11071867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E77D746 for ; Fri, 2 Aug 2019 02:21:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E6602877B for ; Fri, 2 Aug 2019 02:21:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EBCE287D1; Fri, 2 Aug 2019 02:21:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74065287BA for ; Fri, 2 Aug 2019 02:21:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 160B56B027C; Thu, 1 Aug 2019 22:20:56 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0E5FA6B027D; Thu, 1 Aug 2019 22:20:56 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EAA5D6B027E; Thu, 1 Aug 2019 22:20:55 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by kanga.kvack.org (Postfix) with ESMTP id AD6886B027C for ; Thu, 1 Aug 2019 22:20:55 -0400 (EDT) Received: by mail-pg1-f198.google.com with SMTP id w5so46432737pgs.5 for ; Thu, 01 Aug 2019 19:20:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=GAYBkmVoEF3i3+udFKn42Z4HyLG0jAAiACtL32v96bk=; b=PcHbEInYP+oas7bxzYf9pXprVZ4asBF/W2/zFLDMa7ceXNBWg0kYoOJvvGszlnft3t BSVsmkS3FrUxMdRJ8HDnKqemBoCJLPlly2mGxpF/Dc1nnf4W7ZaFDgLB10/5J/uPDbXI oSo82qyHlbrLWcdcsTAwql6Y5n6nZMpXfpJ+VFwBnW29kmFnSLlV8ONWdI6tKoI5hsZc UNUfKlgXKBo7Z6SwvdJVk84gwKfpd4z0ZUuFkfEu/o/m6p/2/FQWCy+7nRzxKiP+R3II 4tALSfzWKWCG+iXE3wujd44tRh5x5QLQ0DN/iXMf3xd8ihsCKi7OuFp9PRNTG0bZS1ob E+PQ== X-Gm-Message-State: APjAAAWc+Kjvi/nc/77Vx4i3sLP+diiWob7NilLL1vVEAuQSNQXuwAPJ oE5h9BMDk2BmW0z2VNTUzeLVjkla1W8olEWqJ8JD7ONLe5KfsgYxl5qGDRPBpX8GkZbOaQkyBvm 1Ul65iAfH1ilt3ZcTcKM7TKvqgMI6ercAD+9bqhxz9BeGmFNmm/Ar02kjPY3nmt98pw== X-Received: by 2002:a17:902:2869:: with SMTP id e96mr124368747plb.203.1564712455382; Thu, 01 Aug 2019 19:20:55 -0700 (PDT) X-Received: by 2002:a17:902:2869:: with SMTP id e96mr124368695plb.203.1564712454435; Thu, 01 Aug 2019 19:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564712454; cv=none; d=google.com; s=arc-20160816; b=EbvcAbjW83UVLzwyIF+DBZVgE95YB5OM1KOaqrw4/FFvK1oJ42PCq4mq4S8zwspbxw SKE3LZo/nWsfJur97MEAhyIIhO8n8+18RWRfiYp2/F0e7utpaaYI0krsn8GnLxuIfEy1 HW+RmwCI0sWqxayPx0lIQ1930IEaEOUVpPKclC/griGfM1zL+Elw8zChrRPwot76V2n4 09wpJgRmPcHNf3PPLEiWpSbaH2pOPh7e8ehA+UjiBoG1mbs+yXbnAHEkSE85aD/3Wn3a SPCGmBAZ6GgKz8t3FuLNc97ItKfkYLUqi8P/kcyBx+6dB5xfb+s+olE0txHDT/p3tj2Z Bmhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=GAYBkmVoEF3i3+udFKn42Z4HyLG0jAAiACtL32v96bk=; b=vX/cYZVgYNT2AbdJObT1Q+WiZw8ZTg1ZKTd+D8FcO9M0WiyoK6gt59CE4akJZiTPru ErZuDrYhVPEpiHRyHjpaVcHQ6UHOS9sjqC1mZNcaW3c+AosjegS5HN2a9IqwWtxXrm4u 1kZNQeoGd3wxW+7h8BzLNEHiKaqYccTLk6zwcZr9AEY0UzMavn6PxUkw3H7LfcuPpp4t 2lsWsGZ+w8vW+n4VDGD/WmW10qHW3I2QThzgaqAtWlMkeFjwkSy0TXbYGScI6rNffZd/ IjP4WM1Td7r9UTyYTL7PskVwS7TD3FK2/abU4frt19VimuQrWnxRtvdFEcD1itfW9eWs C7nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bmiw3CX7; spf=pass (google.com: domain of john.hubbard@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.hubbard@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id a1sor29177427pfc.63.2019.08.01.19.20.54 for (Google Transport Security); Thu, 01 Aug 2019 19:20:54 -0700 (PDT) Received-SPF: pass (google.com: domain of john.hubbard@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bmiw3CX7; spf=pass (google.com: domain of john.hubbard@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.hubbard@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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=GAYBkmVoEF3i3+udFKn42Z4HyLG0jAAiACtL32v96bk=; b=bmiw3CX7eWARhNE7AvtkZmQS4x25Aeig4lpzknXcIaYlaD2lFjd7SScDpJpgYkkx7H M9zB+YKzWGQiUxpLMFNGr5C65PRt2twJ1gMudyUxXC2keVru4Xjo/FbRHcQrMN3Y+TrZ eo41sq59jY3La9DLko+7E0ikMqlCsHblNQuS0OdL1WxPMxgnPsNhJmLosVpKu/cSt2yk /jFkZ5J0l+DrkETHxtxwR7Cu6qeEDmLrh7LIOTNKe2v9mBpFbaPnHS0W/dcoeyOSz4Iu 4HCVwyMi41Z2O7etDQGq6Zv3vzS7McPz5uoywJBAMCcGAE7RrRQ8O1qBbeYiWwc/8w4w LKxQ== X-Google-Smtp-Source: APXvYqxC0ya0xWU0ncqxEWJISgZVi9PxJ3dzG7YEhtGnuj+4PZQMAaeHdCEV26ObbLm8aGFRS+hMhQ== X-Received: by 2002:aa7:9481:: with SMTP id z1mr57240070pfk.92.1564712454191; Thu, 01 Aug 2019 19:20:54 -0700 (PDT) Received: from blueforge.nvidia.com (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id u9sm38179744pgc.5.2019.08.01.19.20.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 19:20:53 -0700 (PDT) From: john.hubbard@gmail.com X-Google-Original-From: jhubbard@nvidia.com To: Andrew Morton Cc: Christoph Hellwig , Dan Williams , Dave Chinner , Dave Hansen , Ira Weiny , Jan Kara , Jason Gunthorpe , =?utf-8?b?SsOpcsO0?= =?utf-8?b?bWUgR2xpc3Nl?= , LKML , amd-gfx@lists.freedesktop.org, ceph-devel@vger.kernel.org, devel@driverdev.osuosl.org, devel@lists.orangefs.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-xfs@vger.kernel.org, netdev@vger.kernel.org, rds-devel@oss.oracle.com, sparclinux@vger.kernel.org, x86@kernel.org, xen-devel@lists.xenproject.org, John Hubbard , "Aneesh Kumar K . V" , Huang Ying , Matthew Wilcox , Michal Hocko , Peter Zijlstra , Rik van Riel , Souptick Joarder , Will Deacon Subject: [PATCH 27/34] mm/memory.c: convert put_page() to put_user_page*() Date: Thu, 1 Aug 2019 19:19:58 -0700 Message-Id: <20190802022005.5117-28-jhubbard@nvidia.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802022005.5117-1-jhubbard@nvidia.com> References: <20190802022005.5117-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: John Hubbard 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: Aneesh Kumar K.V Cc: Huang Ying Cc: Jérôme Glisse Cc: Matthew Wilcox Cc: Michal Hocko Cc: Peter Zijlstra Cc: Rik van Riel Cc: Souptick Joarder Cc: Will Deacon Signed-off-by: John Hubbard --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index e2bb51b6242e..8870968496ea 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4337,7 +4337,7 @@ int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, buf, maddr + offset, bytes); } kunmap(page); - put_page(page); + put_user_page(page); } len -= bytes; buf += bytes;