X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=mm%2Fmprotect.c;h=7bdbd4b0f6d9306d7d38007b6c17eaeed4e98c25;hb=e920e14ca29b0b2a981cfc90e4e20edd6f078d19;hp=94722a4d6b438311de1d1690d81a0d598a907339;hpb=688d794c4c3f8b08c814381ee2edd3ede5856056;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/mm/mprotect.c b/mm/mprotect.c index 94722a4..7bdbd4b 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -101,8 +101,9 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd, make_migration_entry_read(&entry); set_pte_at(mm, addr, pte, swp_entry_to_pte(entry)); + + pages++; } - pages++; } } while (pte++, addr += PAGE_SIZE, addr != end); arch_leave_lazy_mmu_mode(); @@ -145,7 +146,7 @@ static inline unsigned long change_pmd_range(struct vm_area_struct *vma, split_huge_page_pmd(vma, addr, pmd); else if (change_huge_pmd(vma, pmd, addr, newprot, prot_numa)) { - pages += HPAGE_PMD_NR; + pages++; continue; } /* fall through */