]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add dataset_kstats_update.. to mmap read/write paths
authordrowfx <matthias@blankertz.org>
Wed, 9 Feb 2022 22:41:42 +0000 (23:41 +0100)
committerTony Hutter <hutter2@llnl.gov>
Thu, 17 Feb 2022 01:58:56 +0000 (17:58 -0800)
commitbc99c809d5034e0cd0b2ed731dd1cdc88e959aa2
tree77b9a8b894bc8faf8a50c33098751b7fc57e349f
parent5c19af07d4dfb92cb5ff3ceae9867224203b04eb
Add dataset_kstats_update.. to mmap read/write paths

This allows reads/writes caused by accesses to mmap files to be
accounted correctly in the per-dataset kstats for both Linux and
FreeBSD.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
Closes #12994
Closes #13044
module/os/freebsd/zfs/zfs_vnops_os.c
module/os/linux/zfs/zfs_vnops_os.c