sbin/hammer: Remove unnecessary blockmap argument
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 11 Jul 2015 10:50:59 +0000 (19:50 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 11 Jul 2015 18:21:59 +0000 (03:21 +0900)
commita360b0f535ef075af0e73b877977e8923495b91d
treeb9b8096b3e000046e34746356755891ca83ee593
parent3eccc3624d9927772735900671eb5918b3e1206e
sbin/hammer: Remove unnecessary blockmap argument

- format_freemap() does not need the second argument for blockmap.
  This function sets that blockmap pointer to
  &root_vol->ondisk->vol0_blockmap[4];
  right before it starts to initialize blockmap anyway.

- Also passing the freemap blockmap as an argument is redundant
  in terms of api since format_freemap() can access the freemap
  blockmap via the first argument (root volume, as mentioned above)
  given that the function knows it's looking for blockmaps[4].
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c
sbin/newfs_hammer/newfs_hammer.c