From patchwork Tue Aug 29 23:54:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Glisse X-Patchwork-Id: 9928573 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 DFC7E602B5 for ; Tue, 29 Aug 2017 23:57:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2BC528A93 for ; Tue, 29 Aug 2017 23:57:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C75B028A97; Tue, 29 Aug 2017 23:57:45 +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 4345A28A93 for ; Tue, 29 Aug 2017 23:57:44 +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 1dmqLp-0000h8-Qu; Tue, 29 Aug 2017 23:55:21 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmqLo-0000gw-FP for xen-devel@lists.xenproject.org; Tue, 29 Aug 2017 23:55:20 +0000 Received: from [85.158.143.35] by server-10.bemta-6.messagelabs.com id FF/09-03642-7EEF5A95; Tue, 29 Aug 2017 23:55:19 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRWlGSWpSXmKPExsVysWW7jO7zf0s jDW6vZ7T4vmUykwOjx+EPV1gCGKNYM/OS8isSWDNOr5rHVvCZu6Jl4XG2BsY5XF2MXBxCArOZ JNrnNjF3MXJysAjYS3zrPw9mMwqUScz//J2ti5EDyM6R+N6aAVG/hFFi6trbjCBxNgEHif+Hn EFMEQFTiV1b60BKmAX2Mkt0HGpiARkjLOAmsW3aVBaI8aoSW1e8ZASxeQUsJDbfessGYnMC2d /fnwOLCwmYS7Q+eM8OUSMocXLmExaQ+cwC6hLr5wmBhJkF5CWat84Gu1JCQFvi8tF2JpC9EgJ 9jBJTFs5gm8AoNAtJ+yyE9llI2hcwMq9iVC9OLSpLLdI100sqykzPKMlNzMzRNTQw08tNLS5O TE/NSUwq1kvOz93ECAxkBiDYwTjvhP8hRkkOJiVR3ht/l0YK8SXlp1RmJBZnxBeV5qQWH2KU4 eBQkuCdA5ITLEpNT61Iy8wBxhRMWoKDR0mEdy9Imre4IDG3ODMdInWKUZdjw+r1X5iEWPLy81 KlxHmvgRQJgBRllObBjYDF9yVGWSlhXkago4R4ClKLcjNLUOVfMYpzMCoJ874HmcKTmVcCt+k V0BFMQEfEeoEdUZKIkJJqYMzgSW/K2v7/sN8acbc1/bXsc7pnMDPrxM69x6YsZeQSt3/uhs47 Z+RSZp4O60sMuxsnvZOj8YGbv8yyFe8SGHruPzboC9M9367atjSfxcdFoD6ptfb/JqNQhVP79 WzOHChi8M263DZ56oHrXK2t3h+ONX78EvTM4cUMNYVdh4Qfzlti2Ww4UYmlOCPRUIu5qDgRAJ aQiu3qAgAA X-Env-Sender: jglisse@redhat.com X-Msg-Ref: server-7.tower-21.messagelabs.com!1504050917!80219077!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 34810 invoked from network); 29 Aug 2017 23:55:18 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-7.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 29 Aug 2017 23:55:18 -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 3056A81DE4; Tue, 29 Aug 2017 23:55:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3056A81DE4 Received: from localhost.localdomain.com (unknown [10.20.6.234]) by smtp.corp.redhat.com (Postfix) with ESMTP id EAA1D5D9C0; Tue, 29 Aug 2017 23:55:15 +0000 (UTC) From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Date: Tue, 29 Aug 2017 19:54:45 -0400 Message-Id: <20170829235447.10050-12-jglisse@redhat.com> In-Reply-To: <20170829235447.10050-1-jglisse@redhat.com> References: <20170829235447.10050-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.25]); Tue, 29 Aug 2017 23:55:17 +0000 (UTC) Cc: Andrea Arcangeli , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , xen-devel@lists.xenproject.org, Boris Ostrovsky , Linus Torvalds , Andrew Morton , "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 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 Cc: Konrad Rzeszutek Wilk Cc: Roger Pau Monné Cc: Boris Ostrovsky Cc: xen-devel@lists.xenproject.org Cc: Kirill A. Shutemov Cc: Andrew Morton Cc: Linus Torvalds Cc: Andrea Arcangeli Reviewed-by: Boris Ostrovsky --- 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, };