ia64/xen-unstable

changeset 5953:975c937c33f9

correct wrong variables pass to the set_pte_at macro.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vh249@arcadians.cl.cam.ac.uk
date Mon Aug 01 16:00:17 2005 +0000 (2005-08-01)
parents 0db6a59abb95
children a75db157d12f
files linux-2.6-xen-sparse/mm/memory.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/mm/memory.c	Mon Aug 01 10:48:24 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/mm/memory.c	Mon Aug 01 16:00:17 2005 +0000
     1.3 @@ -1814,12 +1814,12 @@ do_anonymous_page(struct mm_struct *mm, 
     1.4  		page_add_anon_rmap(page, vma, addr);
     1.5  	}
     1.6  
     1.7 -	set_pte_at(vma, addr, page_table, entry);
     1.8 +	set_pte_at(mm, addr, page_table, entry);
     1.9  	pte_unmap(page_table);
    1.10  
    1.11  	/* No need to invalidate - it was non-present before */
    1.12  	update_mmu_cache(vma, addr, entry);
    1.13 - 	lazy_mmu_prot_update(entry);
    1.14 +	lazy_mmu_prot_update(entry);
    1.15  	spin_unlock(&mm->page_table_lock);
    1.16  out:
    1.17  	return VM_FAULT_MINOR;
    1.18 @@ -1928,7 +1928,7 @@ retry:
    1.19  		entry = mk_pte(new_page, vma->vm_page_prot);
    1.20  		if (write_access)
    1.21  			entry = maybe_mkwrite(pte_mkdirty(entry), vma);
    1.22 -		set_pte_at(vma, address, page_table, entry);
    1.23 +		set_pte_at(mm, address, page_table, entry);
    1.24  		if (anon) {
    1.25  			lru_cache_add_active(new_page);
    1.26  			page_add_anon_rmap(new_page, vma, address);