diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2019-11-19 23:19:43 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2019-11-19 23:19:43 +0000 |
commit | 639676877b44243fe027002abb481db076dcaf14 (patch) | |
tree | 3bfb29066fa50fcb2b86567ff8c75c693d8f0cf2 /sys/kern | |
parent | 44cc3f9c314f89116c9ff50679d5a413dc79fa41 (diff) | |
download | src-test2-639676877b44243fe027002abb481db076dcaf14.tar.gz src-test2-639676877b44243fe027002abb481db076dcaf14.zip |
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sysv_shm.c | 5 | ||||
-rw-r--r-- | sys/kern/uipc_shm.c | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 8553257fdcc6..086c7a32be9f 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -751,11 +751,6 @@ shmget_allocate_segment(struct thread *td, struct shmget_args *uap, int mode) #endif return (ENOMEM); } - shm_object->pg_color = 0; - VM_OBJECT_WLOCK(shm_object); - vm_object_clear_flag(shm_object, OBJ_ONEMAPPING); - vm_object_set_flag(shm_object, OBJ_COLORED | OBJ_NOSPLIT); - VM_OBJECT_WUNLOCK(shm_object); shmseg->object = shm_object; shmseg->u.shm_perm.cuid = shmseg->u.shm_perm.uid = cred->cr_uid; diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c index 1a3325aff0df..1891284503ab 100644 --- a/sys/kern/uipc_shm.c +++ b/sys/kern/uipc_shm.c @@ -597,11 +597,6 @@ shm_alloc(struct ucred *ucred, mode_t mode) shmfd->shm_object = vm_pager_allocate(OBJT_SWAP, NULL, shmfd->shm_size, VM_PROT_DEFAULT, 0, ucred); KASSERT(shmfd->shm_object != NULL, ("shm_create: vm_pager_allocate")); - shmfd->shm_object->pg_color = 0; - VM_OBJECT_WLOCK(shmfd->shm_object); - vm_object_clear_flag(shmfd->shm_object, OBJ_ONEMAPPING); - vm_object_set_flag(shmfd->shm_object, OBJ_COLORED | OBJ_NOSPLIT); - VM_OBJECT_WUNLOCK(shmfd->shm_object); vfs_timestamp(&shmfd->shm_birthtime); shmfd->shm_atime = shmfd->shm_mtime = shmfd->shm_ctime = shmfd->shm_birthtime; |