From: Weijie Yang Date: Thu, 14 Jan 2016 23:22:40 +0000 (-0800) Subject: zsmalloc: reorganize struct size_class to pack 4 bytes hole X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7dfa4612204b511c934ca2a0e4f306f9981bd9aa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git zsmalloc: reorganize struct size_class to pack 4 bytes hole Reoder the pages_per_zspage field in struct size_class which can eliminate the 4 bytes hole between it and stats field. Signed-off-by: Weijie Yang Reviewed-by: Sergey Senozhatsky Cc: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 9f15bdd9163c..e7414cec220b 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -213,10 +213,10 @@ struct size_class { int size; unsigned int index; - /* Number of PAGE_SIZE sized pages to combine to form a 'zspage' */ - int pages_per_zspage; struct zs_size_stat stats; + /* Number of PAGE_SIZE sized pages to combine to form a 'zspage' */ + int pages_per_zspage; /* huge object: pages_per_zspage == 1 && maxobj_per_zspage == 1 */ bool huge; };