diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | } |