git: sys/vfs/hammer: Add hammer_data_zone(_index) macros

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:33 PDT 2015


commit 22c06dfef90f0611f9cbd825002774b8f1041962
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Sep 6 22:59:27 2015 +0900

    sys/vfs/hammer: Add hammer_data_zone(_index) macros
    
    since now that all hammer code selects data zone to
    allocate blockmap space based on the following basic
    rule without an exception (that is actually the same).
    
    zone = (data_len >= 16KB ? LARGE_DATA : SMALL_DATA);

Summary of changes:
 sbin/hammer/cmd_blockmap.c     |  4 +---
 sbin/hammer/ondisk.c           | 25 ++++++++++++-------------
 sys/vfs/hammer/hammer_disk.h   |  9 +++++++++
 sys/vfs/hammer/hammer_object.c |  3 +--
 sys/vfs/hammer/hammer_ondisk.c |  4 +---
 5 files changed, 24 insertions(+), 21 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/22c06dfef90f0611f9cbd825002774b8f1041962


-- 
DragonFly BSD source repository



More information about the Commits mailing list