X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Ffremap.c;h=7881638e4a12bd8c5489c8d08b5779b5ae5a0080;hb=87547ee95d81ec0ee1503fcaf9c9594469bc2510;hp=07a9c82ce1a3fa0e24da2f2da23e9416e3f1819c;hpb=ae51801ba5ca27c2c571eb508daa99b392e79bd4;p=linux-2.6 diff --git a/mm/fremap.c b/mm/fremap.c index 07a9c82ce1..7881638e4a 100644 --- a/mm/fremap.c +++ b/mm/fremap.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -214,7 +215,9 @@ asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, spin_unlock(&mapping->i_mmap_lock); } + mmu_notifier_invalidate_range_start(mm, start, start + size); err = populate_range(mm, vma, start, size, pgoff); + mmu_notifier_invalidate_range_end(mm, start, start + size); if (!err && !(flags & MAP_NONBLOCK)) { if (unlikely(has_write_lock)) { downgrade_write(&mm->mmap_sem);