Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306645
b: refs/heads/master
c: 7396fa8
h: refs/heads/master
i:
  306643: 1748c3f
v: v3
  • Loading branch information
Srikar Dronamraju authored and Ingo Molnar committed Apr 14, 2012
1 parent 9e951a5 commit 5d63e25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ac1ef482d7ae0c690f1640bf6eb818ff9a2d91e
refs/heads/master: 7396fa818d6278694a44840f389ddc40a3269a9a
5 changes: 5 additions & 0 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ static int __replace_page(struct vm_area_struct *vma, struct page *page, struct
get_page(kpage);
page_add_new_anon_rmap(kpage, vma, addr);

if (!PageAnon(page)) {
dec_mm_counter(mm, MM_FILEPAGES);
inc_mm_counter(mm, MM_ANONPAGES);
}

flush_cache_page(vma, addr, pte_pfn(*ptep));
ptep_clear_flush(vma, addr, ptep);
set_pte_at_notify(mm, addr, ptep, mk_pte(kpage, vma->vm_page_prot));
Expand Down

0 comments on commit 5d63e25

Please sign in to comment.