summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_shm.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2019-11-19 23:19:43 +0000
committerJeff Roberson <jeff@FreeBSD.org>2019-11-19 23:19:43 +0000
commit639676877b44243fe027002abb481db076dcaf14 (patch)
tree3bfb29066fa50fcb2b86567ff8c75c693d8f0cf2 /sys/kern/uipc_shm.c
parent44cc3f9c314f89116c9ff50679d5a413dc79fa41 (diff)
downloadsrc-test2-639676877b44243fe027002abb481db076dcaf14.tar.gz
src-test2-639676877b44243fe027002abb481db076dcaf14.zip
Notes
Diffstat (limited to 'sys/kern/uipc_shm.c')
-rw-r--r--sys/kern/uipc_shm.c5
1 files changed, 0 insertions, 5 deletions
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;