Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcb0ce1b authored by Zhang, Yanmin's avatar Zhang, Yanmin Committed by Pekka Enberg
Browse files

slub: change kmem_cache->align to record the real alignment



kmem_cache->align records the original align parameter value specified
by users. Function calculate_alignment might change it based on cache
line size. So change kmem_cache->align correspondingly.

Signed-off-by: default avatarZhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 3de47213
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2422,6 +2422,7 @@ static int calculate_sizes(struct kmem_cache *s, int forced_order)
	 * on bootup.
	 */
	align = calculate_alignment(flags, align, s->objsize);
	s->align = align;

	/*
	 * SLUB stores one object immediately after another beginning from