From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 782E36B025E for ; Thu, 11 Aug 2016 09:01:11 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id 1so8400043wmz.2 for ; Thu, 11 Aug 2016 06:01:11 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id ss6si2391351wjb.7.2016.08.11.06.01.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 11 Aug 2016 06:01:10 -0700 (PDT) Subject: Re: [PATCH 5/5] mm/page_owner: don't define fields on struct page_ext by hard-coding References: <1470809784-11516-1-git-send-email-iamjoonsoo.kim@lge.com> <1470809784-11516-6-git-send-email-iamjoonsoo.kim@lge.com> From: Vlastimil Babka Message-ID: Date: Thu, 11 Aug 2016 15:01:07 +0200 MIME-Version: 1.0 In-Reply-To: <1470809784-11516-6-git-send-email-iamjoonsoo.kim@lge.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: js1304@gmail.com, Andrew Morton Cc: Minchan Kim , Michal Hocko , Sergey Senozhatsky , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Joonsoo Kim On 08/10/2016 08:16 AM, js1304@gmail.com wrote: > From: Joonsoo Kim > > There is a memory waste problem if we define field on struct page_ext > by hard-coding. Entry size of struct page_ext includes the size of > those fields even if it is disabled at runtime. Now, extra memory request > at runtime is possible so page_owner don't need to define it's own fields > by hard-coding. > > This patch removes hard-coded define and uses extra memory for storing > page_owner information in page_owner. Most of code are just mechanical > changes. > > Signed-off-by: Joonsoo Kim Acked-by: Vlastimil Babka -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org