summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-03-11 22:25:02 +0000
committerdg <dg@FreeBSD.org>1995-03-11 22:25:02 +0000
commitff36772fd11039f4395c7a617065d84862ac765e (patch)
tree2cd94d943d6a9553e5d2f3b97775b8211653393c
parentb556619d08adf019bbfc74cbcc14e717831867ec (diff)
downloadFreeBSD-src-ff36772fd11039f4395c7a617065d84862ac765e.zip
FreeBSD-src-ff36772fd11039f4395c7a617065d84862ac765e.tar.gz
Clear OBJ_INTERNAL flag for device pager objects and named anonymous
objects.
-rw-r--r--sys/vm/device_pager.c3
-rw-r--r--sys/vm/swap_pager.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c
index 846b024..36b2ec4 100644
--- a/sys/vm/device_pager.c
+++ b/sys/vm/device_pager.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)device_pager.c 8.1 (Berkeley) 6/11/93
- * $Id: device_pager.c,v 1.5 1995/01/09 16:05:29 davidg Exp $
+ * $Id: device_pager.c,v 1.6 1995/02/21 01:22:43 davidg Exp $
*/
/*
@@ -176,6 +176,7 @@ top:
* Allocate object and associate it with the pager.
*/
object = devp->devp_object = vm_object_allocate(0);
+ object->flags &= ~OBJ_INTERNAL;
vm_object_enter(object, pager);
object->pager = pager;
/*
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 9902969..c7b05e4 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -39,7 +39,7 @@
* from: Utah $Hdr: swap_pager.c 1.4 91/04/30$
*
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
- * $Id: swap_pager.c,v 1.28 1995/02/25 17:02:48 davidg Exp $
+ * $Id: swap_pager.c,v 1.29 1995/03/01 23:29:53 davidg Exp $
*/
/*
@@ -282,6 +282,7 @@ swap_pager_alloc(handle, size, prot, offset)
* might be the pageout daemon calling.
*/
object = vm_object_allocate(size);
+ object->flags &= ~OBJ_INTERNAL;
vm_object_enter(object, pager);
object->pager = pager;
} else {
OpenPOWER on IntegriCloud