fs/writeback: convert wbc_account_cgroup_owner to take a folio
authorPankaj Raghav <p.raghav@samsung.com>
Thu, 26 Sep 2024 14:01:21 +0000 (16:01 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 28 Oct 2024 12:26:54 +0000 (13:26 +0100)
commit30dac24e14b52e1787572d1d4e06eeabe8a63630
tree785cec169628f6c335289e34c7be6d418e98c4ba
parent8c6e03ffedc5463d1aa1ba89f6ceb082518a3520
fs/writeback: convert wbc_account_cgroup_owner to take a folio

Most of the callers of wbc_account_cgroup_owner() are converting a folio
to page before calling the function. wbc_account_cgroup_owner() is
converting the page back to a folio to call mem_cgroup_css_from_folio().

Convert wbc_account_cgroup_owner() to take a folio instead of a page,
and convert all callers to pass a folio directly except f2fs.

Convert the page to folio for all the callers from f2fs as they were the
only callers calling wbc_account_cgroup_owner() with a page. As f2fs is
already in the process of converting to folios, these call sites might
also soon be calling wbc_account_cgroup_owner() with a folio directly in
the future.

No functional changes. Only compile tested.

Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20240926140121.203821-1-kernel@pankajraghav.com
Acked-by: David Sterba <dsterba@suse.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/admin-guide/cgroup-v2.rst
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/buffer.c
fs/ext4/page-io.c
fs/f2fs/data.c
fs/fs-writeback.c
fs/iomap/buffered-io.c
fs/mpage.c
include/linux/writeback.h