diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-24 22:37:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-24 22:37:15 -0700 |
commit | c9e1750cf60872334f2425848dfc5d3a7dbd323d (patch) | |
tree | 1bf9023d70d59f7c4a633774c7bc4413d7fdfd7a /mm | |
parent | 51f17423ad91e33031147336330fa2e5d34e803d (diff) | |
download | history-c9e1750cf60872334f2425848dfc5d3a7dbd323d.tar.gz |
Pass in a "dirty" argument to ptep_establish in
preparation for pte update race fix.
This does not actually use the information yet, but
the next few patches will start to put it to some
good use.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/memory.c b/mm/memory.c index 198a00953c336a..2ae115e4bd0927 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1004,7 +1004,7 @@ static inline void break_cow(struct vm_area_struct * vma, struct page * new_page flush_cache_page(vma, address); entry = maybe_mkwrite(pte_mkdirty(mk_pte(new_page, vma->vm_page_prot)), vma); - ptep_establish(vma, address, page_table, entry); + ptep_establish(vma, address, page_table, entry, 1); update_mmu_cache(vma, address, entry); } @@ -1056,7 +1056,7 @@ static int do_wp_page(struct mm_struct *mm, struct vm_area_struct * vma, flush_cache_page(vma, address); entry = maybe_mkwrite(pte_mkyoung(pte_mkdirty(pte)), vma); - ptep_establish(vma, address, page_table, entry); + ptep_establish(vma, address, page_table, entry, 1); update_mmu_cache(vma, address, entry); pte_unmap(page_table); spin_unlock(&mm->page_table_lock); @@ -1646,7 +1646,7 @@ static inline int handle_pte_fault(struct mm_struct *mm, entry = pte_mkdirty(entry); } entry = pte_mkyoung(entry); - ptep_establish(vma, address, pte, entry); + ptep_establish(vma, address, pte, entry, write_access); update_mmu_cache(vma, address, entry); pte_unmap(pte); spin_unlock(&mm->page_table_lock); |