summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-18 18:10:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-18 18:10:29 +0000
commit4e35ce4cf8d6c64974b1d63a9c79f6159ce3e727 (patch)
tree6d22e4b742c378fb6224b85b667c421fe1f406bf
parent186e830782dd08350e45c135e62247e092104635 (diff)
(pager_flush): Lock request should be VM_PROT_NO_CHANGE, not VM_PROT_NONE.
(pager_flush_some): Likewise.
-rw-r--r--libpager/pager-flush.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpager/pager-flush.c b/libpager/pager-flush.c
index c774c3ab..55a76de6 100644
--- a/libpager/pager-flush.c
+++ b/libpager/pager-flush.c
@@ -1,5 +1,5 @@
/* Functions for flushing data
- 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_flush (struct pager *p, int wait)
pager_report_extent (p->upi, &offset, &len);
_pager_lock_object (p, offset, len, MEMORY_OBJECT_RETURN_NONE, 1,
- VM_PROT_NONE, wait);
+ VM_PROT_NO_CHANGE, wait);
}
@@ -40,6 +40,6 @@ pager_flush_some (struct pager *p, vm_address_t offset,
vm_size_t size, int wait)
{
_pager_lock_object (p, offset, size, MEMORY_OBJECT_RETURN_NONE, 1,
- VM_PROT_NONE, wait);
+ VM_PROT_NO_CHANGE, wait);
}