]> err.no Git - linux-2.6/commitdiff
[PATCH] VM: Fix typos in get_locked_pte
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Wed, 30 Nov 2005 00:27:22 +0000 (19:27 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 30 Nov 2005 01:29:57 +0000 (17:29 -0800)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c

index 5bfa52a986305dc5af148537782ea375bbce19dc..8d10b5540c73655f72fd50ebe55155d9b0996aa0 100644 (file)
@@ -1146,12 +1146,12 @@ int zeromap_page_range(struct vm_area_struct *vma,
        return err;
 }
 
-pte_t *get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl)
+pte_t * fastcall get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl)
 {
        pgd_t * pgd = pgd_offset(mm, addr);
        pud_t * pud = pud_alloc(mm, pgd, addr);
        if (pud) {
-               pmd_t * pmd = pmd_alloc(mm, pgd, addr);
+               pmd_t * pmd = pmd_alloc(mm, pud, addr);
                if (pmd)
                        return pte_alloc_map_lock(mm, pmd, addr, ptl);
        }