Commit 7dac0ec
hugetlb: pass struct vm_fault through to hugetlb_handle_userfault()
Now that hugetlb_fault() has a struct vm_fault, have
hugetlb_handle_userfault() use it instead of creating one of its own.
This lets us reduce the number of arguments passed to
hugetlb_handle_userfault() from 7 to 3, cleaning up the code and stack.
Link: https://lkml.kernel.org/r/20240221234732.187629-4-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 0ca2272 commit 7dac0ec
1 file changed
+9
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6085 | 6085 | | |
6086 | 6086 | | |
6087 | 6087 | | |
6088 | | - | |
| 6088 | + | |
6089 | 6089 | | |
6090 | | - | |
6091 | | - | |
6092 | | - | |
6093 | | - | |
6094 | 6090 | | |
6095 | 6091 | | |
6096 | 6092 | | |
6097 | | - | |
6098 | | - | |
6099 | | - | |
6100 | | - | |
6101 | | - | |
6102 | | - | |
6103 | | - | |
6104 | | - | |
6105 | | - | |
6106 | | - | |
6107 | | - | |
6108 | | - | |
6109 | | - | |
6110 | | - | |
6111 | 6093 | | |
6112 | 6094 | | |
6113 | 6095 | | |
6114 | 6096 | | |
6115 | 6097 | | |
6116 | 6098 | | |
6117 | | - | |
6118 | | - | |
| 6099 | + | |
| 6100 | + | |
6119 | 6101 | | |
6120 | | - | |
| 6102 | + | |
6121 | 6103 | | |
6122 | 6104 | | |
6123 | 6105 | | |
| |||
6141 | 6123 | | |
6142 | 6124 | | |
6143 | 6125 | | |
6144 | | - | |
| 6126 | + | |
| 6127 | + | |
6145 | 6128 | | |
6146 | 6129 | | |
6147 | 6130 | | |
| |||
6200 | 6183 | | |
6201 | 6184 | | |
6202 | 6185 | | |
6203 | | - | |
6204 | | - | |
| 6186 | + | |
6205 | 6187 | | |
6206 | 6188 | | |
6207 | 6189 | | |
| |||
6273 | 6255 | | |
6274 | 6256 | | |
6275 | 6257 | | |
6276 | | - | |
6277 | | - | |
| 6258 | + | |
6278 | 6259 | | |
6279 | 6260 | | |
6280 | 6261 | | |
| |||
6444 | 6425 | | |
6445 | 6426 | | |
6446 | 6427 | | |
6447 | | - | |
6448 | 6428 | | |
6449 | | - | |
| 6429 | + | |
6450 | 6430 | | |
6451 | 6431 | | |
6452 | 6432 | | |
| |||
0 commit comments