[PATCH] VM: Fix typos in get_locked_pte

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Trond Myklebust and committed by Linus Torvalds 49c91fb0 2f12c74f

+2 -2
+2 -2
mm/memory.c
··· 1146 return err; 1147 } 1148 1149 - pte_t *get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl) 1150 { 1151 pgd_t * pgd = pgd_offset(mm, addr); 1152 pud_t * pud = pud_alloc(mm, pgd, addr); 1153 if (pud) { 1154 - pmd_t * pmd = pmd_alloc(mm, pgd, addr); 1155 if (pmd) 1156 return pte_alloc_map_lock(mm, pmd, addr, ptl); 1157 }
··· 1146 return err; 1147 } 1148 1149 + pte_t * fastcall get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl) 1150 { 1151 pgd_t * pgd = pgd_offset(mm, addr); 1152 pud_t * pud = pud_alloc(mm, pgd, addr); 1153 if (pud) { 1154 + pmd_t * pmd = pmd_alloc(mm, pud, addr); 1155 if (pmd) 1156 return pte_alloc_map_lock(mm, pmd, addr, ptl); 1157 }