git: kernel - SWAP CACHE part 5/many - Change vm_pindex_t to 64

看板DFBSD_commit作者時間16年前 (2010/02/05 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit f9ab53b8a88b37d719f8f9763132d71421e96f24 Author: Matthew Dillon <dillon@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 than 16TB. 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(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f9ab53b8a88b37d719f8f9763132d71421e96f24 -- DragonFly BSD source repository
文章代碼(AID): #1BQrZvIR (DFBSD_commit)