diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-11 16:42:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-11 16:42:20 +0000 |
commit | 6b46236c83f9aa5b9cd59b466eeba348ee23825a (patch) | |
tree | ef7eca8601ed03d00b5a9a53b3355f66ed478486 /sys/uvm | |
parent | cc20036a151815396b8c4285e8b3b56f0172f1d5 (diff) |
final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_pager.c | 18 | ||||
-rw-r--r-- | sys/uvm/uvm_swap.c | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sys/uvm/uvm_pager.c b/sys/uvm/uvm_pager.c index 10a4dc55777..87849f905c8 100644 --- a/sys/uvm/uvm_pager.c +++ b/sys/uvm/uvm_pager.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pager.c,v 1.62 2013/05/30 16:29:46 tedu Exp $ */ +/* $OpenBSD: uvm_pager.c,v 1.63 2013/06/11 16:42:19 deraadt Exp $ */ /* $NetBSD: uvm_pager.c,v 1.36 2000/11/27 18:26:41 chs Exp $ */ /* @@ -462,7 +462,7 @@ uvm_mk_pcluster(struct uvm_object *uobj, struct vm_page **pps, int *npages, * PGO_PDFREECLUST: pagedaemon: drop cluster on successful I/O * PGO_FREE: tell the aio daemon to free pages in the async case. * => start/stop: if (uobj && !PGO_ALLPAGES) limit targets to this range - * if (!uobj) start is the (daddr64_t) of the starting swapblk + * if (!uobj) start is the (daddr_t) of the starting swapblk * => return state: * 1. we return the VM_PAGER status code of the pageout * 2. we return with the page queues unlocked @@ -480,7 +480,7 @@ uvm_pager_put(struct uvm_object *uobj, struct vm_page *pg, voff_t start, voff_t stop) { int result; - daddr64_t swblk; + daddr_t swblk; struct vm_page **ppsp = *ppsp_ptr; /* @@ -517,7 +517,7 @@ uvm_pager_put(struct uvm_object *uobj, struct vm_page *pg, * interested in (in which case the whole cluster gets dropped * in the event of an error or a sync "done"). */ - swblk = (daddr64_t) start; + swblk = (daddr_t) start; /* ppsp and npages should be ok */ } @@ -533,7 +533,7 @@ ReTry: if (uobj) { result = uobj->pgops->pgo_put(uobj, ppsp, *npages, flags); } else { - /* XXX daddr64_t -> int */ + /* XXX daddr_t -> int */ result = uvm_swap_put(swblk, ppsp, *npages, flags); } @@ -579,7 +579,7 @@ ReTry: */ if (uobj == NULL && pg != NULL) { - /* XXX daddr64_t -> int */ + /* XXX daddr_t -> int */ int nswblk = (result == VM_PAGER_AGAIN) ? swblk : 0; if (pg->pg_flags & PQ_ANON) { pg->uanon->an_swslot = nswblk; @@ -598,10 +598,10 @@ ReTry: if (uobj == NULL) { if (pg) { - /* XXX daddr64_t -> int */ + /* XXX daddr_t -> int */ uvm_swap_free(swblk + 1, *npages - 1); } else { - /* XXX daddr64_t -> int */ + /* XXX daddr_t -> int */ uvm_swap_free(swblk, *npages); } } @@ -618,7 +618,7 @@ ReTry: * free swslots that we mark bad. */ - /* XXX daddr64_t -> int */ + /* XXX daddr_t -> int */ uvm_swap_markbad(swblk, *npages); } } diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index 54be0771b3d..fd2d5d376b3 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.114 2013/05/30 15:17:59 tedu Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.115 2013/06/11 16:42:19 deraadt Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -1157,7 +1157,7 @@ sw_reg_strategy(struct swapdev *sdp, struct buf *bp, int bn) { struct vnode *vp; struct vndxfer *vnx; - daddr64_t nbn; + daddr_t nbn; caddr_t addr; off_t byteoff; int s, off, nra, error, sz, resid; @@ -1196,7 +1196,7 @@ sw_reg_strategy(struct swapdev *sdp, struct buf *bp, int bn) error = VOP_BMAP(sdp->swd_vp, byteoff / sdp->swd_bsize, &vp, &nbn, &nra); - if (error == 0 && nbn == (daddr64_t)-1) { + if (error == 0 && nbn == (daddr_t)-1) { /* * this used to just set error, but that doesn't * do the right thing. Instead, it causes random @@ -1632,7 +1632,7 @@ uvm_swap_get(struct vm_page *page, int swslot, int flags) int uvm_swap_io(struct vm_page **pps, int startslot, int npages, int flags) { - daddr64_t startblk; + daddr_t startblk; struct buf *bp; vaddr_t kva; int result, s, mapinflags, pflag, bounce = 0, i; |