From patchwork Fri Aug 2 02:19:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: john.hubbard@gmail.com X-Patchwork-Id: 11071797 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 3C90C13AC for ; Fri, 2 Aug 2019 02:20:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CD7F2852A for ; Fri, 2 Aug 2019 02:20:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21015285D9; Fri, 2 Aug 2019 02:20:51 +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 A40CA2852A for ; Fri, 2 Aug 2019 02:20:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 224436B026F; Thu, 1 Aug 2019 22:20:36 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1D5FA6B0270; Thu, 1 Aug 2019 22:20:36 -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 050166B0271; Thu, 1 Aug 2019 22:20:36 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id C2A166B026F for ; Thu, 1 Aug 2019 22:20:35 -0400 (EDT) Received: by mail-pf1-f199.google.com with SMTP id q14so47138309pff.8 for ; Thu, 01 Aug 2019 19:20:35 -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=6zqhiQUR/t5HSZML/x55nFGZKGW5GK1LULKEmO0k7kA=; b=Q0uqyhjDn5CAHW1mIYEldoESJTNTYtWB7EhVn9sTRY1eea0CVgJs1pdpYQXPobtBeC q5hF6BuuFAKjfjoHe8QGzHaT07GzfEVqhW05BOeZPJIRo0paflnpvCnnqVDugs24dcud uNIuB4IE9SOB4wcM97VV9Z8104GGtKhuDI3rlw9RXnOJlJPSYzbCH8TsPI4exaOHgLqk yd/nja/QEP7E0PtHTkO6rtIqZ2ZvwaJElOGNvKq01OC6LO9VwwDmBUnnxkmO/mJE1zoY K4veEBRFKNpUY8iqb3xQJw4IT5Sid5FbKCdrNgaa0N3e6D7jGfOkTKT4TX3My6J50BVq MhCw== X-Gm-Message-State: APjAAAXkdng9AOyN1tvjZzs1xvdkdFY/3uJr4kxfaoVKPaH/Tt3w8u8h V9/LZ8lOSw8YwSIHGwY0Vv9fHOvQqRaH1D+bn2VUaOWLKvfyhL+wa+77s7lcmEg4V13/DQFW6ld WIk5i+jrdvXmRNss7caCioG86tfqe6Y8AkqWhbMMYq/LQ/CrXfY9W6UZYbX22O4S6tw== X-Received: by 2002:a17:902:f81:: with SMTP id 1mr33907607plz.191.1564712435467; Thu, 01 Aug 2019 19:20:35 -0700 (PDT) X-Received: by 2002:a17:902:f81:: with SMTP id 1mr33907544plz.191.1564712434448; Thu, 01 Aug 2019 19:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564712434; cv=none; d=google.com; s=arc-20160816; b=hk1mhp3q5YL98kDMav+0aDiKJAgf3aUI6lpYy5z44937XKCAvttwSeZ5ypqYdvBlVg c/UHkhRG2s94FUWSM3yHSB4xo8sTVj9ibaqP1KdEW6IYFA6ENhC7Rwxp/sOjkRy3EXBE XnFVccfxBaHZivwN52ym+nmQybdpZnxSgde/7LlGqAkA8eD/ZnA0u/Q9j7ZHIERVLm+b BUh0cMKmr057SGQ+MZVgIuxE2ER3IkplT5tDyo+3DKVbgtJTaEGNWPXDwurLXq+X5YGn sDujTL2ot1XtHpM62m6nLVHWII18OhOwpcqCufUY1ZLGT4DMW4Tj8xGXErteOTuxN4kX VOOw== 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=6zqhiQUR/t5HSZML/x55nFGZKGW5GK1LULKEmO0k7kA=; b=mQzYhe2mZFD3E3JcR5Fs/co/nIWVFa6+0nliPSDQJxzzLAK/EJml8AjN5uhAZTuRMC IwysVkN+6/oswf9iDre7nguG98hMWY4APzjxp8539wojaHAnxvjcK1Qp0qFHsgm6aJd/ e0SkGuAeGcI9yhkexzbx2XcKptQWdtN8QgN9+vsh2X/12cxr5sM2Xlu2P4xxiDyxjSTo KJNVtU3qHc+Lj+A4nReibZGX3ApUuLlbndkwYh+rn+Aqt28ihLekCnNd0vicJdqy6mYe Qd4LsTxUhHLNB3tb2FeWt8s8Wc+sAGo3XzwYK+bOr1MBnKTwzUWvLs1bPMPF7g8c/P02 9ckg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F6zwcO4L; 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 31sor49670783pgy.17.2019.08.01.19.20.34 for (Google Transport Security); Thu, 01 Aug 2019 19:20:34 -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=F6zwcO4L; 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=6zqhiQUR/t5HSZML/x55nFGZKGW5GK1LULKEmO0k7kA=; b=F6zwcO4LIlIH0MhJxHttCJTdvFyVFQT/4arw8VEiUMf3H4eEoUX+759aMNEB4E5yQk Nz2fCbsNakzpI2Ix1oQ23cChuh59P2OEpLwWSX6x9IY/wvMOZe6lEWSb2zFdzp0gprdi y9rnyWNc6RyhaZMvzhG8ve4bXMhMFks51tm4rHvgstN2tswx5ZOG0+I0UrLn8K8liKz6 o59abaE04tV7AfXXxMZta+A8VG8S0kkDg1uyI4tR9b3t+a4fVwe1pYra9FjftWzgoUTS x4tLp6R3lAg/evT8dl18ZgG3qJOUMIaQFDribAsCQyGjHMfkpuycFyZQ36o14QJqnxy+ vrdA== X-Google-Smtp-Source: APXvYqxawjrrBWhVHWqru35UkhsNUwOEktD3Ze9ukSGMVZSHmBDx+KHUyZVGOPhrL6EFpIA4EvvUgw== X-Received: by 2002:a63:b64:: with SMTP id a36mr113099405pgl.215.1564712434076; Thu, 01 Aug 2019 19:20:34 -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.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 19:20:33 -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 , "David S . Miller" , Jonathan Helman , Rob Gardner , Andy Shevchenko , Jonathan Corbet , Wei Yongjun , Mauro Carvalho Chehab Subject: [PATCH 14/34] oradax: convert put_page() to put_user_page*() Date: Thu, 1 Aug 2019 19:19:45 -0700 Message-Id: <20190802022005.5117-15-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: David S. Miller Cc: Jonathan Helman Cc: Rob Gardner Cc: Andy Shevchenko Cc: Jonathan Corbet Cc: Wei Yongjun Cc: Mauro Carvalho Chehab Cc: sparclinux@vger.kernel.org Signed-off-by: John Hubbard --- drivers/sbus/char/oradax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sbus/char/oradax.c b/drivers/sbus/char/oradax.c index 8af216287a84..029e619992fc 100644 --- a/drivers/sbus/char/oradax.c +++ b/drivers/sbus/char/oradax.c @@ -412,7 +412,7 @@ static void dax_unlock_pages(struct dax_ctx *ctx, int ccb_index, int nelem) dax_dbg("freeing page %p", p); if (j == OUT) set_page_dirty(p); - put_page(p); + put_user_page(p); ctx->pages[i][j] = NULL; } }