Commit 76e5699d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] extend-check_valid_hugepage_range.patch

From: David Gibson <david@gibson.dropbear.id.au>


Renames check_valid_hugepage_range() to is_hugepage_only_range(), which makes
more sense.
parent 73accc3d
......@@ -37,8 +37,8 @@ mark_mm_hugetlb(struct mm_struct *mm, struct vm_area_struct *vma)
mm->used_hugetlb = 1;
}
#ifndef ARCH_HAS_VALID_HUGEPAGE_RANGE
#define check_valid_hugepage_range(addr, len) 0
#ifndef ARCH_HAS_HUGEPAGE_ONLY_RANGE
#define is_hugepage_only_range(addr, len) 0
#endif
#else /* !CONFIG_HUGETLB_PAGE */
......@@ -62,7 +62,7 @@ static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
#define follow_huge_pmd(mm, addr, pmd, write) 0
#define is_aligned_hugepage_range(addr, len) 0
#define pmd_huge(x) 0
#define check_valid_hugepage_range(addr, len) 0
#define is_hugepage_only_range(addr, len) 0
#ifndef HPAGE_MASK
#define HPAGE_MASK 0 /* Keep the compiler happy */
......
......@@ -834,7 +834,7 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
* reserved hugepage range. For some archs like IA-64,
* there is a separate region for hugepages.
*/
ret = check_valid_hugepage_range(addr, len);
ret = is_hugepage_only_range(addr, len);
}
if (ret)
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment