diff options
Diffstat (limited to 'libpager')
-rw-r--r-- | libpager/pager-flush.c | 9 |
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); } |