summaryrefslogtreecommitdiff
path: root/libpager
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-26 21:04:43 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-26 21:04:43 +0000
commitb486be25ca9cac4f02c2ae25391822956da3fc1f (patch)
tree68b79ee9c06602f5f9c5c83e0aca80c56a5f7b15 /libpager
parentbbc6983ca7274a885a4592d458fe5bf9ca0750b7 (diff)
(pager_sync): Ask for RETURN_ALL and not just RETURN_DIRTY,
because we treat precious pages here as dirty.
Diffstat (limited to 'libpager')
-rw-r--r--libpager/pager-sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpager/pager-sync.c b/libpager/pager-sync.c
index 0d8527b4..4f1ee620 100644
--- a/libpager/pager-sync.c
+++ b/libpager/pager-sync.c
@@ -1,5 +1,5 @@
/* Functions for sync.
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1996 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -28,7 +28,7 @@ pager_sync (struct pager *p, int wait)
pager_report_extent (p->upi, &offset, &len);
- _pager_lock_object (p, offset, len, MEMORY_OBJECT_RETURN_DIRTY, 0,
+ _pager_lock_object (p, offset, len, MEMORY_OBJECT_RETURN_ALL, 0,
VM_PROT_NO_CHANGE, wait);
}
@@ -39,7 +39,7 @@ void
pager_sync_some (struct pager *p, vm_address_t offset,
vm_size_t size, int wait)
{
- _pager_lock_object (p, offset, size, MEMORY_OBJECT_RETURN_DIRTY, 0,
+ _pager_lock_object (p, offset, size, MEMORY_OBJECT_RETURN_ALL, 0,
VM_PROT_NO_CHANGE, wait);
}