summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-21 17:20:21 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-21 17:20:21 +0000
commit0ed4f01c9ed870895265062c1b0a35d49148e8e7 (patch)
tree510234a35b8a3e7db3197b456e395544ac924624 /ufs
parentfc02b7d3c40a810e09ab85414a84ebf12ae86253 (diff)
(diskfs_truncate): Use ports reference calls directly instead of pager
wrappers.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/sizes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c
index 62360e3c..0e6b893e 100644
--- a/ufs/sizes.c
+++ b/ufs/sizes.c
@@ -92,7 +92,7 @@ diskfs_truncate (struct node *np,
spin_lock (&node2pagelock);
upi = np->dn->fileinfo;
if (upi)
- pager_reference (upi->p);
+ ports_port_ref (upi->p);
spin_unlock (&node2pagelock);
if (upi)
@@ -106,7 +106,7 @@ diskfs_truncate (struct node *np,
mach_port_deallocate (mach_task_self (), obj);
pager_flush_some (upi->p, round_page (length),
np->allocsize - length, 1);
- pager_unreference (upi->p);
+ ports_port_deref (upi->p);
}
rwlock_writer_lock (&np->dn->allocptrlock);
@@ -263,13 +263,13 @@ diskfs_truncate (struct node *np,
spin_lock (&node2pagelock);
upi = np->dn->fileinfo;
if (upi)
- pager_reference (upi->p);
+ ports_port_ref (upi->p);
spin_unlock (&node2pagelock);
if (upi)
{
pager_change_attributes (upi->p, MAY_CACHE,
MEMORY_OBJECT_COPY_DELAY, 0);
- pager_unreference (upi->p);
+ ports_port_deref (upi->p);
}
return err;