Commit 27125df
mm/slab: drop the OBJEXTS_NOSPIN_ALLOC flag from enum objext_flags
OBJEXTS_NOSPIN_ALLOC was used to remember whether a slabobj_ext vector
was allocated via kmalloc_nolock(), so that free_slab_obj_exts() could
call kfree_nolock() instead of kfree().
Now that kfree() supports freeing kmalloc_nolock() objects, this flag is
no longer needed. Instead, pass the allow_spin parameter down to
free_slab_obj_exts() to determine whether kfree_nolock() or kfree()
should be called in the free path, and free one bit in
enum objext_flags.
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Harry Yoo <harry.yoo@oracle.com>
Reviewed-by: Hao Li <hao.li@linux.dev>
Link: https://patch.msgid.link/20260210044642.139482-3-harry.yoo@oracle.com
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent c4d6d78 commit 27125df
2 files changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2190 | 2190 | | |
2191 | 2191 | | |
2192 | 2192 | | |
2193 | | - | |
2194 | | - | |
2195 | 2193 | | |
2196 | 2194 | | |
2197 | 2195 | | |
| |||
2229 | 2227 | | |
2230 | 2228 | | |
2231 | 2229 | | |
2232 | | - | |
| 2230 | + | |
2233 | 2231 | | |
2234 | 2232 | | |
2235 | 2233 | | |
| |||
2257 | 2255 | | |
2258 | 2256 | | |
2259 | 2257 | | |
2260 | | - | |
2261 | | - | |
2262 | | - | |
| 2258 | + | |
2263 | 2259 | | |
| 2260 | + | |
| 2261 | + | |
2264 | 2262 | | |
2265 | 2263 | | |
2266 | 2264 | | |
| |||
2324 | 2322 | | |
2325 | 2323 | | |
2326 | 2324 | | |
2327 | | - | |
| 2325 | + | |
2328 | 2326 | | |
2329 | 2327 | | |
2330 | 2328 | | |
| |||
3404 | 3402 | | |
3405 | 3403 | | |
3406 | 3404 | | |
3407 | | - | |
| 3405 | + | |
3408 | 3406 | | |
3409 | 3407 | | |
3410 | 3408 | | |
3411 | 3409 | | |
3412 | 3410 | | |
3413 | 3411 | | |
3414 | | - | |
| 3412 | + | |
3415 | 3413 | | |
3416 | 3414 | | |
3417 | 3415 | | |
| |||
3515 | 3513 | | |
3516 | 3514 | | |
3517 | 3515 | | |
3518 | | - | |
| 3516 | + | |
3519 | 3517 | | |
3520 | 3518 | | |
3521 | 3519 | | |
| |||
0 commit comments