diff options
author | Vishal Moola (Oracle) <vishal.moola@gmail.com> | 2024-02-22 02:47:31 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-03-05 04:01:15 +0300 |
commit | 9acad7ba3e25d11f4c96df1b7312ae89e6faca5c (patch) | |
tree | 9f6e6f28947c1f6f78e78a79e3b40f4bd39b2187 /arch/arm/tools | |
parent | 7dac0ec8fa3f4977d04974e94806dfa8bdac7ed2 (diff) | |
download | linux-9acad7ba3e25d11f4c96df1b7312ae89e6faca5c.tar.xz |
hugetlb: use vmf_anon_prepare() instead of anon_vma_prepare()
hugetlb_no_page() and hugetlb_wp() call anon_vma_prepare(). In
preparation for hugetlb to safely handle faults under the VMA lock, use
vmf_anon_prepare() here instead.
Additionally, passing hugetlb_wp() the vm_fault struct from
hugetlb_fault() works toward cleaning up the hugetlb code and function
stack.
Link: https://lkml.kernel.org/r/20240221234732.187629-5-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/arm/tools')
0 files changed, 0 insertions, 0 deletions