X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fmemory.c;h=85e80a57db29e2412ef766268996ec005c3e16c8;hb=2d2020242d14dc8caf83d7682d91368cff64290c;hp=9abc6008544baae37d9d88a4416a4ec81e966132;hpb=2ade43618b0aee83a50b344171d33d85c73d01b1;p=linux-2.6 diff --git a/mm/memory.c b/mm/memory.c index 9abc600854..85e80a57db 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -623,11 +623,12 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, (*zap_work)--; continue; } + + (*zap_work) -= PAGE_SIZE; + if (pte_present(ptent)) { struct page *page; - (*zap_work) -= PAGE_SIZE; - page = vm_normal_page(vma, addr, ptent); if (unlikely(details) && page) { /*