diff options
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -495,7 +495,8 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) | |||
495 | if (shmflg & SHM_NORESERVE) | 495 | if (shmflg & SHM_NORESERVE) |
496 | acctflag = VM_NORESERVE; | 496 | acctflag = VM_NORESERVE; |
497 | file = hugetlb_file_setup(name, 0, size, acctflag, | 497 | file = hugetlb_file_setup(name, 0, size, acctflag, |
498 | &shp->mlock_user, HUGETLB_SHMFS_INODE); | 498 | &shp->mlock_user, HUGETLB_SHMFS_INODE, |
499 | (shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); | ||
499 | } else { | 500 | } else { |
500 | /* | 501 | /* |
501 | * Do not allow no accounting for OVERCOMMIT_NEVER, even | 502 | * Do not allow no accounting for OVERCOMMIT_NEVER, even |