aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/hugetlb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index acb864130f80..fdbbbb90caa2 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -345,8 +345,8 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
345 flush_tlb_range(vma, start, end); 345 flush_tlb_range(vma, start, end);
346} 346}
347 347
348static struct page *find_lock_huge_page(struct address_space *mapping, 348static struct page *find_or_alloc_huge_page(struct address_space *mapping,
349 unsigned long idx) 349 unsigned long idx)
350{ 350{
351 struct page *page; 351 struct page *page;
352 int err; 352 int err;
@@ -398,7 +398,7 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
398 * Use page lock to guard against racing truncation 398 * Use page lock to guard against racing truncation
399 * before we get page_table_lock. 399 * before we get page_table_lock.
400 */ 400 */
401 page = find_lock_huge_page(mapping, idx); 401 page = find_or_alloc_huge_page(mapping, idx);
402 if (!page) 402 if (!page)
403 goto out; 403 goto out;
404 404