diff options
author | phk <phk@FreeBSD.org> | 1996-05-03 21:01:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-03 21:01:54 +0000 |
commit | 5d01dc3d502f27448cc5a6c62c8f103d25ac3df0 (patch) | |
tree | 6e409b4bdf1f55b895a65877ef5486cfc5442060 /sys/vm/swap_pager.c | |
parent | 6ed0fd2b8bab9bd3b84ab82f273df31ce328c87d (diff) | |
download | FreeBSD-src-5d01dc3d502f27448cc5a6c62c8f103d25ac3df0.zip FreeBSD-src-5d01dc3d502f27448cc5a6c62c8f103d25ac3df0.tar.gz |
Another sweep over the pmap/vm macros, this time with more focus on
the usage. I'm not satisfied with the naming, but now at least there is
less bogus stuff around.
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index d548931..b6c7db6 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -39,7 +39,7 @@ * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ * * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 - * $Id: swap_pager.c,v 1.63 1996/03/06 04:31:46 dyson Exp $ + * $Id: swap_pager.c,v 1.64 1996/05/02 14:21:14 phk Exp $ */ /* @@ -304,13 +304,13 @@ swap_pager_alloc(handle, size, prot, offset) * rip support of "named anonymous regions" out altogether. */ object = vm_object_allocate(OBJT_SWAP, - OFF_TO_IDX(offset + PAGE_SIZE - 1) + size); + OFF_TO_IDX(offset + PAGE_MASK) + size); object->handle = handle; (void) swap_pager_swp_alloc(object, M_WAITOK); } } else { object = vm_object_allocate(OBJT_SWAP, - OFF_TO_IDX(offset + PAGE_SIZE - 1) + size); + OFF_TO_IDX(offset + PAGE_MASK) + size); (void) swap_pager_swp_alloc(object, M_WAITOK); } |