Commit f6a8dd9
hugetlb: convert alloc_buddy_hugetlb_folio to use a folio
While this function returned a folio, it was still using __alloc_pages() and __free_pages(). Use __folio_alloc() and put_folio() instead. This actually removes a call to compound_head(), but more importantly, it prepares us for the move to memdescs. Link: https://lkml.kernel.org/r/20240402200656.913841-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Reviewed-by: Oscar Salvador <osalvador@suse.de> Reviewed-by: Muchun Song <muchun.song@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 4c773a4 commit f6a8dd9
1 file changed
+16
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2177 | 2177 | | |
2178 | 2178 | | |
2179 | 2179 | | |
2180 | | - | |
| 2180 | + | |
2181 | 2181 | | |
2182 | 2182 | | |
2183 | 2183 | | |
2184 | 2184 | | |
2185 | | - | |
2186 | | - | |
| 2185 | + | |
| 2186 | + | |
2187 | 2187 | | |
2188 | 2188 | | |
2189 | 2189 | | |
| |||
2196 | 2196 | | |
2197 | 2197 | | |
2198 | 2198 | | |
2199 | | - | |
| 2199 | + | |
2200 | 2200 | | |
2201 | | - | |
2202 | | - | |
2203 | | - | |
| 2201 | + | |
| 2202 | + | |
2204 | 2203 | | |
2205 | 2204 | | |
2206 | 2205 | | |
2207 | 2206 | | |
2208 | 2207 | | |
2209 | | - | |
2210 | | - | |
| 2208 | + | |
| 2209 | + | |
2211 | 2210 | | |
2212 | 2211 | | |
2213 | 2212 | | |
2214 | | - | |
2215 | | - | |
2216 | | - | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
2217 | 2216 | | |
2218 | | - | |
| 2217 | + | |
2219 | 2218 | | |
2220 | 2219 | | |
2221 | 2220 | | |
2222 | | - | |
| 2221 | + | |
2223 | 2222 | | |
2224 | 2223 | | |
2225 | 2224 | | |
2226 | | - | |
| 2225 | + | |
2227 | 2226 | | |
2228 | 2227 | | |
2229 | | - | |
| 2228 | + | |
2230 | 2229 | | |
2231 | 2230 | | |
2232 | 2231 | | |
2233 | 2232 | | |
2234 | 2233 | | |
2235 | | - | |
| 2234 | + | |
2236 | 2235 | | |
2237 | 2236 | | |
2238 | 2237 | | |
| |||
0 commit comments