git: sbin/hammer: Remove modified1 flag
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Jul 18 11:26:06 PDT 2015
commit 963edea72368c08668ba9c074a0309c2b06274fb
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sat Jul 18 15:57:31 2015 +0900
sbin/hammer: Remove modified1 flag
- modified1 isn't necessary and also the code is clearer without
this flag.
- Once layer1 big-block is initialized, the only thing allocator
has to do to layer1 is ++ or -- layer1->blocks_free and update
crc. So it's better to just update crc whenever layer1->blocks_free
got ++ or --.
Summary of changes:
sbin/hammer/ondisk.c | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/963edea72368c08668ba9c074a0309c2b06274fb
--
DragonFly BSD source repository
More information about the Commits
mailing list