diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2023-11-18 05:32:30 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-12 21:57:05 +0300 |
commit | 294de6d8f14a69f1251b94223ba9d90d64b28cec (patch) | |
tree | 7b6d255c1187145057161333940a68d4de033f81 /mm/swap_state.c | |
parent | f8b6187d8dd98fd32fe393071f362a7b6beaad0a (diff) | |
download | linux-294de6d8f14a69f1251b94223ba9d90d64b28cec.tar.xz |
mm: memory: rename page_copy_prealloc() to folio_prealloc()
Let's rename page_copy_prealloc() to folio_prealloc(), which could be
reused in more functons, as it maybe zero the new page, pass a new
need_zero to it, and call the vma_alloc_zeroed_movable_folio() if
need_zero is true.
Link: https://lkml.kernel.org/r/20231118023232.1409103-4-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions