lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 10 Oct 2017 13:55:17 +0530 From: Ayush Mittal <ayush.m@...sung.com> To: akpm@...ux-foundation.org, vbabka@...e.cz, vinmenon@...eaurora.org, linux-mm@...ck.org, linux-kernel@...r.kernel.org Cc: a.sahrawat@...sung.com, pankaj.m@...sung.com, v.narang@...sung.com, Ayush Mittal <ayush.m@...sung.com> Subject: [PATCH 1/1] mm: reducing page_owner structure size Maximum page order can be at max 10 which can be accomodated in short data type(2 bytes). last_migrate_reason is defined as enum type whose values can be accomodated in short data type (2 bytes). Total structure size is currently 16 bytes but after changing structure size it goes to 12 bytes. Signed-off-by: Ayush Mittal <ayush.m@...sung.com> --- mm/page_owner.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_owner.c b/mm/page_owner.c index 0fd9dcf..4ab438a 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -19,9 +19,9 @@ #define PAGE_OWNER_STACK_DEPTH (16) struct page_owner { - unsigned int order; + unsigned short order; + short last_migrate_reason; gfp_t gfp_mask; - int last_migrate_reason; depot_stack_handle_t handle; }; -- 1.7.1
Powered by blists - more mailing lists