git: hammer - Make vfs.hammer.cluster_enable an integer

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jun 8 16:05:06 PDT 2016


commit e7d75765a12690c7d3bbf05bc3680156bbf2e03c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jun 8 16:02:34 2016 -0700

    hammer - Make vfs.hammer.cluster_enable an integer
    
    * Instead of being a boolean, make it an integer and use it to control
      how much read-ahead is requested (in 64KB blocks).
    
    * Change cluster_enable from 1 to 2 to roughly match the cluster_read()
      changes committed to the kernel.
    
    * Make hammer_io_indirect_read() use cluster_readcb() instead of breadcb()
      so we get read-ahead on this path.

Summary of changes:
 sys/vfs/hammer/hammer_io.c     | 27 +++++++++++++++++++++++----
 sys/vfs/hammer/hammer_vfsops.c |  2 +-
 2 files changed, 24 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e7d75765a12690c7d3bbf05bc3680156bbf2e03c


-- 
DragonFly BSD source repository


More information about the Commits mailing list