mm/rmap.c: don't call mmu_notifier_invalidate_page() during munlock
authorKonstantin Khlebnikov <koct9i@gmail.com>
Wed, 4 Jun 2014 23:10:51 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:12 +0000 (16:54 -0700)
commit3d92860f979f725a9c10c2fc26c0415a4332adbf
treea4ecf8ab9a583f6fbdc8899eba63fdb3946088ac
parent226b4ccdcb6371645c25ec99b59bfde65987318c
mm/rmap.c: don't call mmu_notifier_invalidate_page() during munlock

In its munmap mode, try_to_unmap_one() searches other mlocked vmas, it
never unmaps pages.  There is no reason for invalidation because ptes are
left unchanged.

Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/rmap.c