sys/vfs/hammer2: Fix double count of hammer2_iod_file_{read,write}
commit68e37e56760edd7959ff1f8194ea7ed799f731c1
authorTomohiro Kusumi <tkusumi@netbsd.org>
Sun, 6 Aug 2023 06:12:28 +0000 (5 23:12 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Sun, 6 Aug 2023 06:50:29 +0000 (5 23:50 -0700)
treed73066ad9770df97a77f1ae9eaab106eddada8bc
parent7cf689a5ea08a2b72d0e7eb8d788e4cec10925f1
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.
sys/vfs/hammer2/hammer2_strategy.c