aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/mmap.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index a6b7c796352b..52646d61ff69 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1382,22 +1382,6 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
1382 if (addr & ~PAGE_MASK) 1382 if (addr & ~PAGE_MASK)
1383 return -EINVAL; 1383 return -EINVAL;
1384 1384
1385 if (file && is_file_hugepages(file)) {
1386 /*
1387 * Check if the given range is hugepage aligned, and
1388 * can be made suitable for hugepages.
1389 */
1390 ret = prepare_hugepage_range(addr, len, pgoff);
1391 } else {
1392 /*
1393 * Ensure that a normal request is not falling in a
1394 * reserved hugepage range. For some archs like IA-64,
1395 * there is a separate region for hugepages.
1396 */
1397 ret = is_hugepage_only_range(current->mm, addr, len);
1398 }
1399 if (ret)
1400 return -EINVAL;
1401 return addr; 1385 return addr;
1402} 1386}
1403 1387