summaryrefslogtreecommitdiffstats
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorWeijie Yang <weijie.yang@samsung.com>2016-01-14 15:22:40 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-15 11:40:52 -0800
commit7dfa4612204b511c934ca2a0e4f306f9981bd9aa (patch)
tree3d4b783ff5c0acc5c98f03d7c0364e83497d44b6 /mm/zsmalloc.c
parentf58fb5e7f0ab05c9083869c1ec27854af2afc7b7 (diff)
downloadop-kernel-dev-7dfa4612204b511c934ca2a0e4f306f9981bd9aa.zip
op-kernel-dev-7dfa4612204b511c934ca2a0e4f306f9981bd9aa.tar.gz
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 <weijie.yang@samsung.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/zsmalloc.c')
-rw-r--r--mm/zsmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 9f15bdd..e7414ce 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;
};
OpenPOWER on IntegriCloud