OSDN Git Service

kvm: Fix page ageing bugs
[uclinux-h8/linux.git] / mm / rmap.c
index 3e8491c..bc74e00 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1355,7 +1355,11 @@ static int try_to_unmap_cluster(unsigned long cursor, unsigned int *mapcount,
                        continue;       /* don't unmap */
                }
 
-               if (ptep_clear_flush_young_notify(vma, address, pte))
+               /*
+                * No need for _notify because we're within an
+                * mmu_notifier_invalidate_range_ {start|end} scope.
+                */
+               if (ptep_clear_flush_young(vma, address, pte))
                        continue;
 
                /* Nuke the page table entry. */