diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2023-03-02 19:58:31 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-03-28 16:20:10 -0700 |
commit | e601ded4247f959702adb5170ca8abac17a0313f (patch) | |
tree | 1a59543fb2b9d561d2d8b135db93e01c899da35e /mm/memory.c | |
parent | 4231f8425833b144f165f01f33887b67f494acf0 (diff) |
mm: memory: use folio_throttle_swaprate() in page_copy_prealloc()
Directly use folio_throttle_swaprate() instead of
cgroup_throttle_swaprate().
Link: https://lkml.kernel.org/r/20230302115835.105364-4-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>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index fe15cf7c86ae..1789c16aae73 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -970,7 +970,7 @@ static inline struct folio *page_copy_prealloc(struct mm_struct *src_mm, folio_put(new_folio); return NULL; } - cgroup_throttle_swaprate(&new_folio->page, GFP_KERNEL); + folio_throttle_swaprate(new_folio, GFP_KERNEL); return new_folio; } |