summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-21 04:27:44 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-21 04:27:44 +0000
commit45294c7f5df22efc69259a2b7d544000b0cc0743 (patch)
treece782e42937932e0cf55bbe401d530f8c68b7342 /ufs
parent725fbaebb89dd2043d2df32a68c9ae490c2e3d4b (diff)
Formerly pager.c.~28~
Diffstat (limited to 'ufs')
-rw-r--r--ufs/pager.c7
1 files changed, 5 insertions, 2 deletions
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);
}