diff options
| author | Vlastimil Babka <vbabka@suse.cz> | 2025-11-07 14:51:23 +0100 |
|---|---|---|
| committer | Vlastimil Babka <vbabka@suse.cz> | 2025-11-10 15:35:21 +0100 |
| commit | b244358e9a1cd61276b8785b1b4275f1f45a1dc2 (patch) | |
| tree | f5e70690b72bdf2cedf559b541f5baec6e09379f /tools/lib/python/abi/helpers.py | |
| parent | c99f969d9a668fe317e0d1bc8e898f3dca11539a (diff) | |
slab: separate struct freelist_tid from kmem_cache_cpu
In kmem_cache_cpu we currently have a union of the freelist+tid pair
with freelist_aba_t, relying implicitly on the type compatibility with the
freelist+counters pair used in freelist_aba_t.
To allow further changes to freelist_aba_t, we can instead define a
separate struct freelist_tid (instead of a typedef, per the coding
style) for kmem_cache_cpu, as that affects only a single helper
__update_cpu_freelist_fast().
We can add the resulting struct freelist_tid to kmem_cache_cpu as
unnamed field thanks to -fms-extensions, so that freelist and tid fields
can still be accessed directly.
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'tools/lib/python/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions
