]> Git Repo - linux.git/commit
mm/rmap: update to new mmu_notifier semantic v2
authorJérôme Glisse <[email protected]>
Thu, 31 Aug 2017 21:17:27 +0000 (17:17 -0400)
committerLinus Torvalds <[email protected]>
Thu, 31 Aug 2017 23:12:59 +0000 (16:12 -0700)
commit369ea8242c0fb5239b4ddf0dc568f694bd244de4
treea3d86efccd044739fd13acaea9c98c9bf14f1b94
parenta4d1a885251382250ec315482bdd8ca52dd61e6a
mm/rmap: update to new mmu_notifier semantic v2

Replace all mmu_notifier_invalidate_page() calls by *_invalidate_range()
and make sure it is bracketed by calls to *_invalidate_range_start()/end().

Note that because we can not presume the pmd value or pte value we have
to assume the worst and unconditionaly report an invalidation as
happening.

Changed since v2:
  - try_to_unmap_one() only one call to mmu_notifier_invalidate_range()
  - compute end with PAGE_SIZE << compound_order(page)
  - fix PageHuge() case in try_to_unmap_one()

Signed-off-by: Jérôme Glisse <[email protected]>
Reviewed-by: Andrea Arcangeli <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Ross Zwisler <[email protected]>
Cc: Bernhard Held <[email protected]>
Cc: Adam Borowski <[email protected]>
Cc: Radim Krčmář <[email protected]>
Cc: Wanpeng Li <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Takashi Iwai <[email protected]>
Cc: Nadav Amit <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: axie <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/rmap.c
This page took 0.056233 seconds and 4 git commands to generate.