git: sbin/hammer: Remove unnecessary blockmap argument
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Jul 11 11:31:53 PDT 2015
commit a360b0f535ef075af0e73b877977e8923495b91d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sat Jul 11 19:50:59 2015 +0900
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].
Summary of changes:
sbin/hammer/hammer_util.h | 2 +-
sbin/hammer/ondisk.c | 3 ++-
sbin/newfs_hammer/newfs_hammer.c | 3 +--
3 files changed, 4 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a360b0f535ef075af0e73b877977e8923495b91d
--
DragonFly BSD source repository
More information about the Commits
mailing list