]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: use default writeback accounting
authorJoanne Koong <joannelkoong@gmail.com>
Mon, 7 Jul 2025 23:46:05 +0000 (16:46 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 27 Aug 2025 12:29:43 +0000 (14:29 +0200)
commit494d2f508883a6e5c4530e5c6b3c8b2bbfb7318d
treed9913d4f6742101bbe57e49eab04dbfa9b836ba5
parentb4da63cea158f050865220a05ab691cfe8fb6450
fuse: use default writeback accounting

commit 0c58a97f919c ("fuse: remove tmp folio for writebacks and internal
rb tree") removed temp folios for dirty page writeback. Consequently,
fuse can now use the default writeback accounting.

With switching fuse to use default writeback accounting, there are some
added benefits. This updates wb->writeback_inodes tracking as well now
and updates writeback throughput estimates after writeback completion.

This commit also removes inc_wb_stat() and dec_wb_stat(). These have no
callers anymore now that fuse does not call them.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c
fs/fuse/inode.c
include/linux/backing-dev.h