Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139145
b: refs/heads/master
c: bd775c4
h: refs/heads/master
i:
  139143: 9ec51aa
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Apr 1, 2009
1 parent b953e49 commit 94d5ddc
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: 9786bf841da57fac3457a1dac41acb4c1f2eced6
refs/heads/master: bd775c42ea5f7c766d03a287083837cf05e7e738
5 changes: 5 additions & 0 deletions trunk/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,11 @@ struct page *follow_page(struct vm_area_struct *vma, unsigned long address,
if ((flags & FOLL_WRITE) &&
!pte_dirty(pte) && !PageDirty(page))
set_page_dirty(page);
/*
* pte_mkyoung() would be more correct here, but atomic care
* is needed to avoid losing the dirty bit: it is easier to use
* mark_page_accessed().
*/
mark_page_accessed(page);
}
unlock:
Expand Down

0 comments on commit 94d5ddc

Please sign in to comment.