Commit 9acad7b
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>1 parent 7dac0ec commit 9acad7b
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5851 | 5851 | | |
5852 | 5852 | | |
5853 | 5853 | | |
5854 | | - | |
| 5854 | + | |
| 5855 | + | |
5855 | 5856 | | |
5856 | 5857 | | |
5857 | 5858 | | |
| |||
5985 | 5986 | | |
5986 | 5987 | | |
5987 | 5988 | | |
5988 | | - | |
5989 | | - | |
| 5989 | + | |
| 5990 | + | |
5990 | 5991 | | |
5991 | | - | |
5992 | 5992 | | |
5993 | 5993 | | |
5994 | 5994 | | |
| |||
6228 | 6228 | | |
6229 | 6229 | | |
6230 | 6230 | | |
6231 | | - | |
6232 | | - | |
| 6231 | + | |
| 6232 | + | |
| 6233 | + | |
6233 | 6234 | | |
6234 | | - | |
6235 | 6235 | | |
6236 | 6236 | | |
6237 | 6237 | | |
| |||
6298 | 6298 | | |
6299 | 6299 | | |
6300 | 6300 | | |
6301 | | - | |
| 6301 | + | |
6302 | 6302 | | |
6303 | 6303 | | |
6304 | 6304 | | |
| |||
6521 | 6521 | | |
6522 | 6522 | | |
6523 | 6523 | | |
6524 | | - | |
| 6524 | + | |
6525 | 6525 | | |
6526 | 6526 | | |
6527 | 6527 | | |
| |||
0 commit comments