Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2470
b: refs/heads/master
c: b4955ce
h: refs/heads/master
v: v3
  • Loading branch information
Abhijit Karmarkar authored and Linus Torvalds committed Jun 22, 2005
1 parent ff8efd9 commit f978f40
Show file tree
Hide file tree
Showing 3 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: c475a8ab625d567eacf5e30ec35d6d8704558062
refs/heads/master: b4955ce3dd0818b56da532a16c9a4a3804a558ee
3 changes: 3 additions & 0 deletions trunk/include/asm-generic/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addres

#ifndef __HAVE_ARCH_PAGE_TEST_AND_CLEAR_DIRTY
#define page_test_and_clear_dirty(page) (0)
#define pte_maybe_dirty(pte) pte_dirty(pte)
#else
#define pte_maybe_dirty(pte) (1)
#endif

#ifndef __HAVE_ARCH_PAGE_TEST_AND_CLEAR_YOUNG
Expand Down
2 changes: 2 additions & 0 deletions trunk/mm/msync.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ static void sync_pte_range(struct vm_area_struct *vma, pmd_t *pmd,

if (!pte_present(*pte))
continue;
if (!pte_maybe_dirty(*pte))
continue;
pfn = pte_pfn(*pte);
if (!pfn_valid(pfn))
continue;
Expand Down

0 comments on commit f978f40

Please sign in to comment.