aboutsummaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2011-10-31 20:09:40 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 20:30:51 -0400
commit35d8c7ad7208dad5d352c483408e555022750978 (patch)
tree19de03a943fb00f7ed239147256aa558ddfd99b3 /mm/huge_memory.c
parent0089e4853ae1ac161fae5137170971ccb6f4f152 (diff)
mm/huge_memory: fix typo when updating mmu cache
There are three cases of update_mmu_cache() in the file, and the case in function collapse_huge_page() has a typo, namely the last parameter used, which is corrected based on the other two cases. Due to the define of update_mmu_cache by X86, the only arch that implements THP currently, the change here has no really crystal point, but one or two minutes of efforts could be saved for those archs that are likely to support THP in future. Signed-off-by: Hillf Danton <dhillf@gmail.com> Cc: Johannes Weiner <jweiner@redhat.com> Reviewed-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r--mm/huge_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index ef954384f53a..860ec211ddd6 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -1952,7 +1952,7 @@ static void collapse_huge_page(struct mm_struct *mm,
1952 BUG_ON(!pmd_none(*pmd)); 1952 BUG_ON(!pmd_none(*pmd));
1953 page_add_new_anon_rmap(new_page, vma, address); 1953 page_add_new_anon_rmap(new_page, vma, address);
1954 set_pmd_at(mm, address, pmd, _pmd); 1954 set_pmd_at(mm, address, pmd, _pmd);
1955 update_mmu_cache(vma, address, entry); 1955 update_mmu_cache(vma, address, _pmd);
1956 prepare_pmd_huge_pte(pgtable, mm); 1956 prepare_pmd_huge_pte(pgtable, mm);
1957 mm->nr_ptes--; 1957 mm->nr_ptes--;
1958 spin_unlock(&mm->page_table_lock); 1958 spin_unlock(&mm->page_table_lock);