git: sys/vfs/hammer2: Fix double count of hammer2_iod_file_{read, write}
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sun Aug 6 02:41:26 PDT 2023
commit 68e37e56760edd7959ff1f8194ea7ed799f731c1
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Sat Aug 5 23:12:28 2023 -0700
sys/vfs/hammer2: Fix double count of hammer2_iod_file_{read,write}
These two are double counting data chain read / write.
* The strategy read lookups a data chain and ends up calling
hammer2_adjreadcounter() from hammer2_chain_load_data().
* The strategy write ends up calling hammer2_adjwritecounter()
when a dirty dio is putblk'd.
Also note that hammer2_iod_xxx counters are for total I/O bytes
according to functions above, not number of times called.
Summary of changes:
sys/vfs/hammer2/hammer2_strategy.c | 2 --
1 file changed, 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/68e37e56760edd7959ff1f8194ea7ed799f731c1
--
DragonFly BSD source repository
More information about the Commits
mailing list