git: hammer2 - Fix inode count statistics
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Sep 11 00:15:07 PDT 2017
commit 068e3f9446fa3e0e5463e4122e991e061440e451
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Sep 11 00:08:24 2017 -0700
hammer2 - Fix inode count statistics
* Fix two inode count statistics bugs related to recent work.
(1) We have to zero out the stats when deleting an indirect block in
the indirect block collapse case because the underlying children
will add them back in when they are moved into the prent. This is
because we are using the 'trick' of removing the indirect block
before moving its children to avoid significant code complexity.
(2) inode_count accounting was improperly counting certain DATA records
as inodes.
Summary of changes:
sys/vfs/hammer2/hammer2_chain.c | 46 +++++++++++++++++++++++++++++++----------
1 file changed, 35 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/068e3f9446fa3e0e5463e4122e991e061440e451
--
DragonFly BSD source repository
More information about the Commits
mailing list