On Thu, Aug 29, 2024 at 10:42:59AM GMT, Vlastimil Babka wrote: > On 8/29/24 02:49, Yosry Ahmed wrote: [...] > > > > Personally, I prefer either explicitly special casing the slab cache > > used for the objcgs vector, explicitly tagging KMALLOC_NORMAL > > allocations, or having a dedicated documented helper that finds the > > slab cache kmalloc type (if any) or checks if it is a KMALLOC_NORMAL > > cache. > > A helper to check is_kmalloc_normal() would be better than defining > KMALLOC_TYPE and using it directly, yes. We don't need to handle any other > types now until anyone needs those. > Sounds good, will update in v3.