From 45294c7f5df22efc69259a2b7d544000b0cc0743 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 21 Sep 1994 04:27:44 +0000 Subject: Formerly pager.c.~28~ --- ufs/pager.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ufs') diff --git a/ufs/pager.c b/ufs/pager.c index 994d65ee..d94fd5ff 100644 --- a/ufs/pager.c +++ b/ufs/pager.c @@ -404,6 +404,9 @@ pager_report_extent (struct user_pager_info *pager, case SINDIR: { + /* This computation is known to sin_remap below, as + is the static `*offset = 0' assignment above. */ + int sizet; /* sizet = disk size of the file */ @@ -564,13 +567,13 @@ sin_remap (struct node *np, port = pager_get_port (upi->p); mach_port_insert_right (mach_task_self (), port, port, MACH_MSG_TYPE_MAKE_SEND); - err = vm_map (mach_task_self (), (u_int *)&np->dn->sinloc, size, + err = vm_map (mach_task_self (), (u_int *)&np->dn->sinloc, newsize, 0, 1, port, 0, 0, VM_PROT_READ|VM_PROT_WRITE, VM_PROT_READ|VM_PROT_WRITE, VM_INHERIT_NONE); mach_port_deallocate (mach_task_self (), port); assert (!err); diskfs_register_memory_fault_area (np->dn->sininfo->p, 0, - np->dn->sinloc, size); + np->dn->sinloc, newsize); } mutex_unlock (&pagernplock); } -- cgit v1.2.3