Print this page
12045 segkmem_page_create(): Fire Walk With Me
*** 18,28 ****
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
! * Copyright 2016 Joyent, Inc.
*/
#include <sys/types.h>
#include <sys/t_lock.h>
#include <sys/param.h>
--- 18,28 ----
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
! * Copyright 2019 Joyent, Inc.
*/
#include <sys/types.h>
#include <sys/t_lock.h>
#include <sys/param.h>
*** 823,841 ****
/*ARGSUSED*/
page_t *
segkmem_page_create(void *addr, size_t size, int vmflag, void *arg)
{
! struct seg kseg;
! int pgflags;
struct vnode *vp = arg;
if (vp == NULL)
vp = &kvp;
kseg.s_as = &kas;
- pgflags = PG_EXCL;
if (segkmem_reloc == 0 || (vmflag & VM_NORELOC))
pgflags |= PG_NORELOC;
if ((vmflag & VM_NOSLEEP) == 0)
pgflags |= PG_WAIT;
--- 823,840 ----
/*ARGSUSED*/
page_t *
segkmem_page_create(void *addr, size_t size, int vmflag, void *arg)
{
! struct seg kseg = { 0 };
! int pgflags = PG_EXCL;
struct vnode *vp = arg;
if (vp == NULL)
vp = &kvp;
kseg.s_as = &kas;
if (segkmem_reloc == 0 || (vmflag & VM_NORELOC))
pgflags |= PG_NORELOC;
if ((vmflag & VM_NOSLEEP) == 0)
pgflags |= PG_WAIT;