git: sbin/hammer: Minor cleanup

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Apr 12 03:15:03 PDT 2016


commit 85619d0f446df6a972308afe1429cc3f6e71db31
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Apr 11 20:39:55 2016 +0900

    sbin/hammer: Minor cleanup
    
    (zone-2 offset of layer1's big-block never changes once initialized)
    
      # grep "layer1_offset = " sys/vfs/hammer sbin/hammer -rI
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_blockmap.c:       layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_volume.c:         layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_volume.c:         layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_volume.c:         layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_volume.c:         layer1_offset = freemap->phys_offset +
      sys/vfs/hammer/hammer_volume.c:         layer1_offset = freemap->phys_offset +
      sbin/hammer/blockmap.c:         layer1_offset = freemap->phys_offset +
      sbin/hammer/blockmap.c: layer1_offset = freemap->phys_offset +
      sbin/hammer/blockmap.c: layer1_offset = freemap->phys_offset +
      sbin/hammer/ondisk.c:   layer1_offset = alloc_bigblock(root_vol, HAMMER_ZONE_FREEMAP_INDEX);
    * sbin/hammer/ondisk.c:           layer1_offset = layer1_base +
    * sbin/hammer/ondisk.c:           layer1_offset = layer1_base +
      sbin/hammer/cmd_blockmap.c:             layer1_offset = rootmap->phys_offset +

Summary of changes:
 sbin/hammer/ondisk.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/85619d0f446df6a972308afe1429cc3f6e71db31


-- 
DragonFly BSD source repository



More information about the Commits mailing list