DragonFly BSD
DragonFly commits List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Feb 2010 15:19:41 -0800 (PST)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]