summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/uvm/uvm_object.c')
-rw-r--r--sys/uvm/uvm_object.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/uvm/uvm_object.c b/sys/uvm/uvm_object.c
index e6844f08c52..06ca765ca40 100644
--- a/sys/uvm/uvm_object.c
+++ b/sys/uvm/uvm_object.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_object.c,v 1.7 2013/05/30 15:17:59 tedu Exp $ */
+/* $OpenBSD: uvm_object.c,v 1.8 2014/05/08 20:08:50 kettenis Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -64,12 +64,12 @@ uvm_objinit(struct uvm_object *uobj, struct uvm_pagerops *pgops, int refs)
*/
int
-uvm_objwire(struct uvm_object *uobj, off_t start, off_t end,
+uvm_objwire(struct uvm_object *uobj, voff_t start, voff_t end,
struct pglist *pageq)
{
- int i, npages, error;
+ int i, npages, left, error;
struct vm_page *pgs[FETCH_PAGECOUNT];
- off_t offset = start, left;
+ voff_t offset = start;
left = (end - start) >> PAGE_SHIFT;
@@ -127,7 +127,7 @@ uvm_objwire(struct uvm_object *uobj, off_t start, off_t end,
uvm_page_unbusy(pgs, npages);
left -= npages;
- offset += npages << PAGE_SHIFT;
+ offset += (voff_t)npages << PAGE_SHIFT;
}
return 0;
@@ -146,7 +146,7 @@ error:
*/
void
-uvm_objunwire(struct uvm_object *uobj, off_t start, off_t end)
+uvm_objunwire(struct uvm_object *uobj, voff_t start, voff_t end)
{
struct vm_page *pg;
off_t offset;