mm: swap: remove unneeded cgroup_throttle_swaprate()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 2 Mar 2023 11:58:35 +0000 (19:58 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:20:10 +0000 (16:20 -0700)
commit3e4fb13ac34bad94cf390415b1e6bc3ca9520d65
tree98d7b9101589c0e09fd035677ded4383527e4449
parent68fa572b503ce8bfd0d0c2e5bb185134086d7d7d
mm: swap: remove unneeded cgroup_throttle_swaprate()

All the callers of cgroup_throttle_swaprate() are converted to
folio_throttle_swaprate(), so make __cgroup_throttle_swaprate() to take a
folio, and rename it to __folio_throttle_swaprate(), also rename gfp_mask
to gfp and drop redundant extern keyword.  finally, drop unused
cgroup_throttle_swaprate().

Link: https://lkml.kernel.org/r/20230302115835.105364-8-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swap.h
mm/swapfile.c