Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2013 20:34:25 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253620 - head/sys/kern
Message-ID:  <201307242034.r6OKYP8C011568@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Jul 24 20:34:25 2013
New Revision: 253620
URL: http://svnweb.freebsd.org/changeset/base/253620

Log:
  Use VMFS_OPTIMAL_SPACE instead of VMFS_ALIGNED_SPACE in shm_map().

Modified:
  head/sys/kern/uipc_shm.c

Modified: head/sys/kern/uipc_shm.c
==============================================================================
--- head/sys/kern/uipc_shm.c	Wed Jul 24 20:21:29 2013	(r253619)
+++ head/sys/kern/uipc_shm.c	Wed Jul 24 20:34:25 2013	(r253620)
@@ -779,7 +779,7 @@ shm_map(struct file *fp, size_t size, of
 	offset = trunc_page(offset);
 	size = round_page(size + ofs);
 	rv = vm_map_find(kernel_map, obj, offset, &kva, size,
-	    VMFS_ALIGNED_SPACE, VM_PROT_READ | VM_PROT_WRITE,
+	    VMFS_OPTIMAL_SPACE, VM_PROT_READ | VM_PROT_WRITE,
 	    VM_PROT_READ | VM_PROT_WRITE, 0);
 	if (rv == KERN_SUCCESS) {
 		rv = vm_map_wire(kernel_map, kva, kva + size,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307242034.r6OKYP8C011568>