mirror of
https://github.com/opnsense/src.git
synced 2026-07-12 02:26:14 -04:00
Initialize the vm object's flags to include OBJ_NOSPLIT, just like the
vm objects that are used by System V shared memory segments.
This commit is contained in:
parent
4d32fcb42b
commit
e384d8a89b
1 changed files with 4 additions and 0 deletions
|
|
@ -319,6 +319,10 @@ shm_alloc(struct ucred *ucred, mode_t mode)
|
|||
shmfd->shm_object = vm_pager_allocate(OBJT_DEFAULT, NULL,
|
||||
shmfd->shm_size, VM_PROT_DEFAULT, 0);
|
||||
KASSERT(shmfd->shm_object != NULL, ("shm_create: vm_pager_allocate"));
|
||||
VM_OBJECT_LOCK(shmfd->shm_object);
|
||||
vm_object_clear_flag(shmfd->shm_object, OBJ_ONEMAPPING);
|
||||
vm_object_set_flag(shmfd->shm_object, OBJ_NOSPLIT);
|
||||
VM_OBJECT_UNLOCK(shmfd->shm_object);
|
||||
vfs_timestamp(&shmfd->shm_birthtime);
|
||||
shmfd->shm_atime = shmfd->shm_mtime = shmfd->shm_ctime =
|
||||
shmfd->shm_birthtime;
|
||||
|
|
|
|||
Loading…
Reference in a new issue