fuse: Track process write operations in both direct and writethrough modes
authorZhou Jifeng <zhoujifeng@kylinos.com.cn>
Tue, 7 Nov 2023 08:13:50 +0000 (16:13 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 6 Mar 2024 08:56:35 +0000 (09:56 +0100)
commit2e3f7dd08d70eca86a8cc9b4baf3da77c032d5fc
tree304f542b3b6a109585cbd3fa38f8ad2eda31b4e4
parent9e7f5296f475ba5ab887ae3e55b922e17e99752b
fuse: Track process write operations in both direct and writethrough modes

Due to the fact that fuse does not count the write IO of processes in the
direct and writethrough write modes, user processes cannot track
write_bytes through the “/proc/[pid]/io” path. For example, the system
tool iotop cannot count the write operations of the corresponding process.

Signed-off-by: Zhou Jifeng <zhoujifeng@kylinos.com.cn>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c