From: Kefeng Wang Date: Thu, 2 Mar 2023 11:58:30 +0000 (+0800) Subject: mm: memory: use folio_throttle_swaprate() in do_swap_page() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4231f8425833b144f165f01f33887b67f494acf0;p=people%2Fjgross%2Flinux.git mm: memory: use folio_throttle_swaprate() in do_swap_page() Directly use folio_throttle_swaprate() instead of cgroup_throttle_swaprate(). Link: https://lkml.kernel.org/r/20230302115835.105364-3-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang Reviewed-by: Matthew Wilcox (Oracle) Signed-off-by: Andrew Morton --- diff --git a/mm/memory.c b/mm/memory.c index bfa3100ec5a3..fe15cf7c86ae 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3839,7 +3839,7 @@ vm_fault_t do_swap_page(struct vm_fault *vmf) lru_add_drain(); } - cgroup_throttle_swaprate(page, GFP_KERNEL); + folio_throttle_swaprate(folio, GFP_KERNEL); /* * Back out if somebody else already faulted in this pte.