diff options
author | Miles Bader <miles@gnu.org> | 1995-06-24 23:30:13 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-06-24 23:30:13 +0000 |
commit | d33bde2cedb3d50ae6871dd48c4c73272f04e1b3 (patch) | |
tree | 0840e5996a57903f8251004d71c96e0aeb5cd09c /ext2fs/truncate.c | |
parent | 8404a163cb83a5336d888f384989275ff4b00fc8 (diff) |
(force_delayed_copies, enable_delayed_copies): Change pager [un]ref calls to
use the new ports ref calls directly instead.
Diffstat (limited to 'ext2fs/truncate.c')
-rw-r--r-- | ext2fs/truncate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index 2ef1c94d..58725381 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -324,7 +324,7 @@ force_delayed_copies (struct node *node, off_t length) spin_lock (&node_to_page_lock); upi = node->dn->fileinfo; if (upi) - pager_reference (upi->p); + ports_port_ref (upi->p); spin_unlock (&node_to_page_lock); if (upi) @@ -336,7 +336,7 @@ force_delayed_copies (struct node *node, off_t length) poke_pages (obj, round_page (length), round_page (node->allocsize)); mach_port_deallocate (mach_task_self (), obj); pager_flush_some (upi->p, round_page(length), node->allocsize - length, 1); - pager_unreference (upi->p); + ports_port_deref (upi->p); } } @@ -348,13 +348,13 @@ enable_delayed_copies (struct node *node) spin_lock (&node_to_page_lock); upi = node->dn->fileinfo; if (upi) - pager_reference (upi->p); + ports_port_ref (upi->p); spin_unlock (&node_to_page_lock); if (upi) { pager_change_attributes (upi->p, MAY_CACHE, MEMORY_OBJECT_COPY_DELAY, 0); - pager_unreference (upi->p); + ports_port_deref (upi->p); } } |