summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpager/object-init.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpager/object-init.c b/libpager/object-init.c
index 8933189b..fe31e8ca 100644
--- a/libpager/object-init.c
+++ b/libpager/object-init.c
@@ -29,6 +29,8 @@ _pager_seqnos_memory_object_init (mach_port_t object,
vm_size_t pagesize)
{
struct pager *p;
+ boolean_t may_cache;
+ memory_object_copy_strategy_t copy_strategy;
if (!(p = ports_check_port_type (object, pager_port_type)))
return EOPNOTSUPP;
@@ -52,9 +54,8 @@ _pager_seqnos_memory_object_init (mach_port_t object,
p->memobjcntl = control;
p->memobjname = name;
- /* Tell the kernel we're ready */
- /* XXX Don't cache for now. */
- memory_object_ready (control, 0, MEMORY_OBJECT_COPY_NONE);
+ pager_report_attributes (p->upi, &may_cache, &copy_strategy);
+ memory_object_ready (control, may_cache, copy_strategy);
p->pager_state = NORMAL;