Hi, Pekka
Thanks for your feedback.
The subject and comments are kind of misleading. Sorry about that.
It intends to make both Red-Zone and LastUser are available even the
alignment is larger than sizeof(long long).
The idea is to reserve certain room ("align") to let the obj's offset
is aligned to cache-line-size to address requirement of kmalloc().
Regarding align is less than sizeof(unsigned long long), I thin it is
handled in previous code.
Or you still expect to explicitly let align is no less than
sizeof(unsigned long long)?
if (flags & SLAB_RED_ZONE) {
ralign = REDZONE_ALIGN;
... ...
}
--
Best Regards
Hu Tao
--