summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-01-19 20:39:57 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-01-19 20:39:57 +0000
commit047379a22543b6568ef07ad2dd966925e5ea7fec (patch)
tree925dacbe19021f3f1edbf3641d1969602a8ecec2
parentb6dc0b29e0e7c01cb3058ac8dea6ec1c52574282 (diff)
entered into RCS
-rw-r--r--libpager/pager-sync.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libpager/pager-sync.c b/libpager/pager-sync.c
index 7218ce39..0d8527b4 100644
--- a/libpager/pager-sync.c
+++ b/libpager/pager-sync.c
@@ -15,6 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "priv.h"
/* Have the kernel write back all dirty pages in the pager; if
WAIT is set, then wait for them to be finally written before
@@ -27,8 +28,8 @@ pager_sync (struct pager *p, int wait)
pager_report_extent (p->upi, &offset, &len);
- lock_object (p, offset, len, MEMORY_OBJECT_RETURN_DIRTY, 0
- VM_PROT_NO_CHANGE, wait);
+ _pager_lock_object (p, offset, len, MEMORY_OBJECT_RETURN_DIRTY, 0,
+ VM_PROT_NO_CHANGE, wait);
}
@@ -38,7 +39,7 @@ void
pager_sync_some (struct pager *p, vm_address_t offset,
vm_size_t size, int wait)
{
- lock_object (p, offset, len, MEMORY_OBJECT_RETURN_DIRTY, 0
- VM_PROT_NO_CHANGE, wait);
+ _pager_lock_object (p, offset, size, MEMORY_OBJECT_RETURN_DIRTY, 0,
+ VM_PROT_NO_CHANGE, wait);
}