mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 11:43:40 +00:00
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>
This commit is contained in:
parent
4231f84258
commit
e601ded424
@ -970,7 +970,7 @@ static inline struct folio *page_copy_prealloc(struct mm_struct *src_mm,
|
|||||||
folio_put(new_folio);
|
folio_put(new_folio);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
cgroup_throttle_swaprate(&new_folio->page, GFP_KERNEL);
|
folio_throttle_swaprate(new_folio, GFP_KERNEL);
|
||||||
|
|
||||||
return new_folio;
|
return new_folio;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user