From patchwork Thu Aug 31 21:17:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Glisse X-Patchwork-Id: 9932943 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A724660309 for ; Thu, 31 Aug 2017 21:20:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BC1726E55 for ; Thu, 31 Aug 2017 21:20:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8ADBE26E69; Thu, 31 Aug 2017 21:20:36 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 03FAF27F82 for ; Thu, 31 Aug 2017 21:20:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnWqp-0006tE-F7; Thu, 31 Aug 2017 21:18:11 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnWqo-0006t4-Rv for xen-devel@lists.xenproject.org; Thu, 31 Aug 2017 21:18:10 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id 82/6F-03128-21D78A95; Thu, 31 Aug 2017 21:18:10 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRWlGSWpSXmKPExsVysWW7jK5g7Yp Ig68TpS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oye3RfYCk7wVExcuYetgfElVxcjJ4eQwGwm iY+//EBsFgF7ifOvL7GB2IwCZRLdbbuYIewciQkve9i7GLmA6ncySnR+P88CkmATkJDY8eM5W IOIgJjExzOXmUGKmAXOMkss633HBJIQFnCT2DZtKgvEBlWJ+deOg9m8AhYST77sA7M5geyjB7 uANnAAbTCXePvfC6JEUOLkzCcsIGFmAXWJ9fOEQMLMAvISzVtng90mIaAtcfloOxPIWgmBPka J1qOv2CcwCs1C0j4LoX0WkvYFjMyrGDWKU4vKUot0jQz1kooy0zNKchMzc3QNDcz0clOLixPT U3MSk4r1kvNzNzECg5kBCHYw/lkWcIhRkoNJSZS32n9FpBBfUn5KZUZicUZ8UWlOavEhRhkOD iUJ3oPVQDnBotT01Iq0zBxgXMGkJTh4lER4t1UBpXmLCxJzizPTIVKnGHU5Nqxe/4VJiCUvPy 9VSpz3D8gMAZCijNI8uBGwGL/EKCslzMsIdJQQT0FqUW5mCar8K0ZxDkYlYV6DGqApPJl5JXC bXgEdwQR0RKzXUpAjShIRUlINjCytnj/28po/Vqz+JnJ33rdEE5cFDlU7rkwX/Lli9vezCVM6 o70d/NpOLtH9/0nOcO6mPV/PNfFvEi3aEbRnZovX7S3Pn5YdsLY4LGR690KxKEOfQKOi01v1P AH9EoMjXQ/L3orOtcv+GKwRPmG/2ofkhiwj3R/TN2iL78n8aP5uCtvL2WFtTEosxRmJhlrMRc WJAE9YJS7sAgAA X-Env-Sender: jglisse@redhat.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1504214288!61589236!1 X-Originating-IP: [209.132.183.28] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMjA5LjEzMi4xODMuMjggPT4gNTQwNjQ=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1525 invoked from network); 31 Aug 2017 21:18:09 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 31 Aug 2017 21:18:09 -0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 977477EA9A; Thu, 31 Aug 2017 21:18:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 977477EA9A Received: from localhost.localdomain.com (ovpn-120-38.rdu2.redhat.com [10.10.120.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id 956AC5DD65; Thu, 31 Aug 2017 21:18:06 +0000 (UTC) From: jglisse@redhat.com To: linux-mm@kvack.org Date: Thu, 31 Aug 2017 17:17:36 -0400 Message-Id: <20170831211738.17922-12-jglisse@redhat.com> In-Reply-To: <20170831211738.17922-1-jglisse@redhat.com> References: <20170831211738.17922-1-jglisse@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 31 Aug 2017 21:18:07 +0000 (UTC) Cc: Andrea Arcangeli , linux-kernel@vger.kernel.org, =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , moderated for non-subscribers , Andrew Morton , Linus Torvalds , "Kirill A . Shutemov" , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [Xen-devel] [PATCH 11/13] xen/gntdev: update to new mmu_notifier semantic X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Jérôme Glisse Call to mmu_notifier_invalidate_page() are replaced by call to mmu_notifier_invalidate_range() and thus call are bracketed by call to mmu_notifier_invalidate_range_start()/end() Remove now useless invalidate_page callback. Signed-off-by: Jérôme Glisse Reviewed-by: Boris Ostrovsky Cc: Konrad Rzeszutek Wilk Cc: Roger Pau Monné Cc: xen-devel@lists.xenproject.org (moderated for non-subscribers) Cc: Kirill A. Shutemov Cc: Andrew Morton Cc: Linus Torvalds Cc: Andrea Arcangeli --- drivers/xen/gntdev.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index f3bf8f4e2d6c..82360594fa8e 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@ -484,13 +484,6 @@ static void mn_invl_range_start(struct mmu_notifier *mn, mutex_unlock(&priv->lock); } -static void mn_invl_page(struct mmu_notifier *mn, - struct mm_struct *mm, - unsigned long address) -{ - mn_invl_range_start(mn, mm, address, address + PAGE_SIZE); -} - static void mn_release(struct mmu_notifier *mn, struct mm_struct *mm) { @@ -522,7 +515,6 @@ static void mn_release(struct mmu_notifier *mn, static const struct mmu_notifier_ops gntdev_mmu_ops = { .release = mn_release, - .invalidate_page = mn_invl_page, .invalidate_range_start = mn_invl_range_start, };