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

Commit eb5e4429 authored by Weijie Yang's avatar Weijie Yang Committed by Vinayak Menon
Browse files

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: default avatarWeijie Yang <weijie.yang@samsung.com>
Reviewed-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Git-commit: 7dfa4612204b511c934ca2a0e4f306f9981bd9aa
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Change-Id: I82fdd68951448d78540e61f70d8d0123604d7e28
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent ad386b38
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
};