git: sys/vfs/hammer: Minor optimization on layer1/2 iteration

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Aug 2 00:34:29 PDT 2015


commit e333f527d47ee244914acd050921d17c6bd30a39
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Aug 1 06:03:27 2015 +0900

    sys/vfs/hammer: Minor optimization on layer1/2 iteration
    
    Layer1 and layer2 metadata are clustered in each big-block,
    so use different buffers for layer1 and layer2 to prevent
    unnecessary buffer release/get. This is what newfs_hammer
    does on bootstrap in userspace and this function basically
    does the same thing via ioctl.

Summary of changes:
 sys/vfs/hammer/hammer_volume.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list