summaryrefslogtreecommitdiffstats
path: root/sys/vm/phys_pager.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2000-12-05 22:22:24 +0000
committeralfred <alfred@FreeBSD.org>2000-12-05 22:22:24 +0000
commitf9b418f18763b274ead2f0b48200a0af135cf931 (patch)
tree4f2c062126013a40df5b91e848deabe3a128d3d2 /sys/vm/phys_pager.c
parent10e390cb2e45042f3072ccdaa8df79883ca595a5 (diff)
downloadFreeBSD-src-f9b418f18763b274ead2f0b48200a0af135cf931.zip
FreeBSD-src-f9b418f18763b274ead2f0b48200a0af135cf931.tar.gz
need to adjust allocation size to properly deal with non PAGE_SIZE
allocations, specifically with allocations < PAGE_SIZE when the code doesn't work properly
Diffstat (limited to 'sys/vm/phys_pager.c')
-rw-r--r--sys/vm/phys_pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/phys_pager.c b/sys/vm/phys_pager.c
index f2980db..153dd2f 100644
--- a/sys/vm/phys_pager.c
+++ b/sys/vm/phys_pager.c
@@ -83,7 +83,7 @@ phys_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
* Allocate object and associate it with the pager.
*/
object = vm_object_allocate(OBJT_PHYS,
- OFF_TO_IDX(foff + size));
+ OFF_TO_IDX(foff + PAGE_MASK + size));
object->handle = handle;
TAILQ_INSERT_TAIL(&phys_pager_object_list, object,
pager_object_list);
OpenPOWER on IntegriCloud