On Fri, 27 May 2016, Alexander Potapenko wrote: > It's reasonable to rely on the fact that for every page allocated for a > kmem_cache the |slab_cache| field points to that cache. Without that it's > hard to figure out which cache does an allocated object belong to.
The flags are set only in the head page of a coumpound page which is used by SLAB. No need to do this. This would just mean unnecessarily dirtying struct page cachelines on allocation.

