summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/grow.c
diff options
context:
space:
mode:
authoraguzovsk <none@none>2006-07-21 21:13:27 -0700
committeraguzovsk <none@none>2006-07-21 21:13:27 -0700
commit07b65a646252c0f0ec200acf82c256c5bf6883b1 (patch)
tree376eab52fa782b1e9b5fc1ef1ce725a0a7e10fe2 /usr/src/uts/common/os/grow.c
parent33bc63788dbca06354c73b744c41d4781504e89b (diff)
downloadillumos-gate-07b65a646252c0f0ec200acf82c256c5bf6883b1.tar.gz
4614772 MPSS to be extended to shared memory
6413095 madvise() freeing up whole pages even when passed sizes smaller than a page 6416714 anon_map_getpages panic during stress test 6428347 multilple pagelocks/softlocks on the same large page should decrement availrmem just once
Diffstat (limited to 'usr/src/uts/common/os/grow.c')
-rw-r--r--usr/src/uts/common/os/grow.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/uts/common/os/grow.c b/usr/src/uts/common/os/grow.c
index e14ed3f43e..c1e3326c67 100644
--- a/usr/src/uts/common/os/grow.c
+++ b/usr/src/uts/common/os/grow.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -587,7 +586,7 @@ zmap(struct as *as, caddr_t *addrp, size_t len, uint_t uprot, int flags,
* If the requested address or length are aligned to the selected large
* page size, l1 or l3 may also be 0.
*/
- if (use_zmap_lpg) {
+ if (use_zmap_lpg && a.type == MAP_PRIVATE) {
pgsz = map_pgsz(MAPPGSZ_VA, p, *addrp, len, NULL);
if (pgsz <= PAGESIZE || len < pgsz) {