Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11348
b: refs/heads/master
c: 86d912f
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Oct 30, 2005
1 parent cda6cda commit b20999b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c10376271e097fa13cda956e1b2f3cb7e4d4dd9
refs/heads/master: 86d912f41dca32eca8827f2f878139735e69dc28
6 changes: 3 additions & 3 deletions trunk/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,13 @@ static void zap_pte_range(struct mmu_gather *tlb,
set_pte_at(mm, addr, pte,
pgoff_to_pte(page->index));
if (PageAnon(page))
anon_rss++;
anon_rss--;
else {
if (pte_dirty(ptent))
set_page_dirty(page);
if (pte_young(ptent))
mark_page_accessed(page);
file_rss++;
file_rss--;
}
page_remove_rmap(page);
tlb_remove_page(tlb, page);
Expand All @@ -632,7 +632,7 @@ static void zap_pte_range(struct mmu_gather *tlb,
pte_clear_full(mm, addr, pte, tlb->fullmm);
} while (pte++, addr += PAGE_SIZE, addr != end);

add_mm_rss(mm, -file_rss, -anon_rss);
add_mm_rss(mm, file_rss, anon_rss);
pte_unmap(pte - 1);
}

Expand Down

0 comments on commit b20999b

Please sign in to comment.