summaryrefslogtreecommitdiff
path: root/libpager
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-01-19 19:53:16 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-01-19 19:53:16 +0000
commit5cc90fba785c75c302e84ef52fbecb8afa935d2f (patch)
tree87a30de1788c7b4fbd11b2473500fa445f1bb1c4 /libpager
parente431e07f6201f691b47e93dacd73afa379b55ed9 (diff)
Formerly pager-flush.c.~3~
Diffstat (limited to 'libpager')
-rw-r--r--libpager/pager-flush.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libpager/pager-flush.c b/libpager/pager-flush.c
index 4e5b754a..2601c052 100644
--- a/libpager/pager-flush.c
+++ b/libpager/pager-flush.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 flush all pages in the pager; if WAIT is set, then
wait for them to be finally expunged before returning. */
@@ -26,8 +27,8 @@ pager_flush (struct pager *p, int wait)
pager_report_extent (p->upi, &offset, &len);
- lock_object (p, offset, len, MEMORY_OBJECT_RETURN_NONE, 1,
- VM_PROT_NONE, wait);
+ _pager_lock_object (p, offset, len, MEMORY_OBJECT_RETURN_NONE, 1,
+ VM_PROT_NONE, wait);
}
@@ -37,7 +38,7 @@ void
pager_flush_some (struct pager *p, vm_address_t offset,
vm_size_t size, int wait)
{
- lock_object (p, offset, len, MEMORY_OBJECT_RETURN_NONE, 1,
- VM_PROT_NONE, wait);
+ _pager_lock_object (p, offset, size, MEMORY_OBJECT_RETURN_NONE, 1,
+ VM_PROT_NONE, wait);
}