diff options
author | 2023-11-18 10:32:31 +0800 | |
---|---|---|
committer | 2023-12-12 10:57:06 -0800 | |
commit | e4621e70469c3ac6e1b6914f1c42941a8a6e44d2 (patch) | |
tree | f83e5777f7f29b87d8dac611d2fb00ab1de5b142 /mm/internal.h | |
parent | mm: memory: rename page_copy_prealloc() to folio_prealloc() (diff) | |
download | wireguard-linux-e4621e70469c3ac6e1b6914f1c42941a8a6e44d2.tar.xz wireguard-linux-e4621e70469c3ac6e1b6914f1c42941a8a6e44d2.zip |
mm: memory: use a folio in do_cow_fault()
Use folio_prealloc() helper and convert to use a folio in do_cow_fault(),
which save five compound_head() calls.
Link: https://lkml.kernel.org/r/20231118023232.1409103-5-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/internal.h')
0 files changed, 0 insertions, 0 deletions