git: kernel - SWAP CACHE part 5/many - Change vm_pindex_t to 64 bits on i386
dillon at crater.dragonflybsd.org
Thu Feb 4 15:20:12 PST 2010
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Feb 3 17:19:36 2010 -0800
kernel - SWAP CACHE part 5/many - Change vm_pindex_t to 64 bits on i386
* Change vm_pindex_t from unsigned long (32 bits) to __uint64_t (64 bits).
This change is necessary to support block devices with greater than 16TB
of storage as well as to support the mmap()ing of HAMMER files larger
Primarily this was done to support block devices greater than 16TB
since HAMMER volumes are allowed to be up to 4096TB each. Filesystem
mounts use VM objects to back block devices.
* On x86_64 vm_pindex_t is already 64 bits but change the typedef from
unsigned long to __uint64_t to match i386.
* Most conversions to and from vm_pindex_t are to 64 bits anyway so this
change does not create any performance issues.
Summary of changes:
sys/cpu/i386/include/param.h | 2 +-
sys/cpu/i386/include/types.h | 2 +-
sys/cpu/x86_64/include/types.h | 2 +-
sys/kern/kern_slaballoc.c | 2 +-
sys/platform/pc32/i386/machdep.c | 8 +++++---
5 files changed, 9 insertions(+), 7 deletions(-)
DragonFly BSD source repository
More information about the Commits