X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=mm%2Fmprotect.c;h=67d02dc0ea04035e280faad5ec180d459f87b559;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=88041d46ad0b6b428658057f53d5f0e92fcaa612;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/mm/mprotect.c b/mm/mprotect.c index 88041d46a..67d02dc0e 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -175,9 +175,11 @@ success: * vm_flags and vm_page_prot are protected by the mmap_sem * held in write mode. */ + vm_stat_unaccount(vma); vma->vm_flags = newflags; vma->vm_page_prot = newprot; change_protection(vma, start, end, newprot); + vm_stat_account(vma); return 0; fail: