git: sbin/hammer: Optimize layer1 crc update

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jul 17 09:50:04 PDT 2015


commit e6b88827fa5a12956398eebd9a708d92e24e9e7e
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Jul 16 23:54:18 2015 +0900

    sbin/hammer: Optimize layer1 crc update
    
    - layer1->layer1_crc needs update only when layer1 metadata gets
      modified. In this case, it needs update only when a blockmap finds
      a new layer2 that hasn't been touched yet, because that's when
      layer1 metadata's free layer2 count is decremented.

Summary of changes:
 sbin/hammer/ondisk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list