aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 9a796c41e7d9..ebf19031c5e4 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1153,8 +1153,9 @@ SYSCALL_DEFINE6(mmap_pgoff, unsigned long, addr, unsigned long, len,
1153 * memory so no accounting is necessary 1153 * memory so no accounting is necessary
1154 */ 1154 */
1155 file = hugetlb_file_setup(HUGETLB_ANON_FILE, addr, len, 1155 file = hugetlb_file_setup(HUGETLB_ANON_FILE, addr, len,
1156 VM_NORESERVE, &user, 1156 VM_NORESERVE,
1157 HUGETLB_ANONHUGE_INODE); 1157 &user, HUGETLB_ANONHUGE_INODE,
1158 (flags >> MAP_HUGE_SHIFT) & MAP_HUGE_MASK);
1158 if (IS_ERR(file)) 1159 if (IS_ERR(file))
1159 return PTR_ERR(file); 1160 return PTR_ERR(file);
1160 } 1161 }