]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fuse: refactor finished writeback stats updates into helper function
authorJoanne Koong <joannelkoong@gmail.com>
Mon, 26 Aug 2024 21:19:03 +0000 (14:19 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 29 Aug 2024 09:43:12 +0000 (11:43 +0200)
commitc04e3b2118192384153b4eac595768e2ffb7ac4a
tree3bd0d904fa8e94fc44ea5020d212068791b54c4e
parent509a6458b44f72bb6854854c89cf76e56f11c9f1
fuse: refactor finished writeback stats updates into helper function

Move the logic for updating the bdi and page stats for a finished
writeback into a separate helper function, where it can be called from
both fuse_writepage_finish() and fuse_writepage_add() (in the case
where there is already an auxiliary write request for the page).

No functional changes added.

Suggested by: Jingbo Xu <jefflexu@linux.alibaba.com>

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c