diff options
author | Jérôme Glisse <jglisse@redhat.com> | 2017-08-31 17:17:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-31 19:13:00 -0400 |
commit | a81461b0546cbf57128f34e3dd6013bcdbdf0371 (patch) | |
tree | ae8ac14c3d3063db15ee6b591051abc7bba097ad | |
parent | a4870125ca9fcd221fbc5f067967e56cfb4d9fbd (diff) |
xen/gntdev: update to new mmu_notifier semantic
Calls to mmu_notifier_invalidate_page() were replaced by calls to
mmu_notifier_invalidate_range() and are now bracketed by calls to
mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Roger Pau Monné <roger.pau@citrix.com>
Cc: xen-devel@lists.xenproject.org (moderated for non-subscribers)
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/xen/gntdev.c | 8 |
1 files changed, 0 insertions, 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, | |||
484 | mutex_unlock(&priv->lock); | 484 | mutex_unlock(&priv->lock); |
485 | } | 485 | } |
486 | 486 | ||
487 | static void mn_invl_page(struct mmu_notifier *mn, | ||
488 | struct mm_struct *mm, | ||
489 | unsigned long address) | ||
490 | { | ||
491 | mn_invl_range_start(mn, mm, address, address + PAGE_SIZE); | ||
492 | } | ||
493 | |||
494 | static void mn_release(struct mmu_notifier *mn, | 487 | static void mn_release(struct mmu_notifier *mn, |
495 | struct mm_struct *mm) | 488 | struct mm_struct *mm) |
496 | { | 489 | { |
@@ -522,7 +515,6 @@ static void mn_release(struct mmu_notifier *mn, | |||
522 | 515 | ||
523 | static const struct mmu_notifier_ops gntdev_mmu_ops = { | 516 | static const struct mmu_notifier_ops gntdev_mmu_ops = { |
524 | .release = mn_release, | 517 | .release = mn_release, |
525 | .invalidate_page = mn_invl_page, | ||
526 | .invalidate_range_start = mn_invl_range_start, | 518 | .invalidate_range_start = mn_invl_range_start, |
527 | }; | 519 | }; |
528 | 520 | ||