# HG changeset patch
# User vh249@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 975c937c33f9a5d58a74a3ad0e32e1c215a8265d
# Parent 0db6a59abb955be772d94ba32fe1a34a26db86da
correct wrong variables pass to the set_pte_at macro.
Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>
diff -r 0db6a59abb95 -r 975c937c33f9 linux-2.6-xen-sparse/mm/memory.c
--- a/linux-2.6-xen-sparse/mm/memory.c Mon Aug 1 10:48:24 2005
+++ b/linux-2.6-xen-sparse/mm/memory.c Mon Aug 1 16:00:17 2005
@@ -1814,12 +1814,12 @@
page_add_anon_rmap(page, vma, addr);
}
- set_pte_at(vma, addr, page_table, entry);
+ set_pte_at(mm, addr, page_table, entry);
pte_unmap(page_table);
/* No need to invalidate - it was non-present before */
update_mmu_cache(vma, addr, entry);
- lazy_mmu_prot_update(entry);
+ lazy_mmu_prot_update(entry);
spin_unlock(&mm->page_table_lock);
out:
return VM_FAULT_MINOR;
@@ -1928,7 +1928,7 @@
entry = mk_pte(new_page, vma->vm_page_prot);
if (write_access)
entry = maybe_mkwrite(pte_mkdirty(entry), vma);
- set_pte_at(vma, address, page_table, entry);
+ set_pte_at(mm, address, page_table, entry);
if (anon) {
lru_cache_add_active(new_page);
page_add_anon_rmap(new_page, vma, address);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|