lkml.org 
[lkml]   [2017]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm/sparse.c: Wrong allocation for mem_section
On Fri, Dec 22, 2017 at 04:48:18PM +0800, Baoquan He wrote:
> In commit
>
> 83e3c48729 "mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y"
>
> mem_section is allocated at runtime to save memory. While it allocates
> the first dimension of array with sizeof(struct mem_section). It costs
> extra memory, should be sizeof(struct mem_section*).
>
> Fix it.
>
> Signed-off-by: Baoquan He <bhe@redhat.com>
> Tested-by: Dave Young <dyoung@redhat.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Andy Lutomirski <luto@amacapital.net>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Atsushi Kumagai <ats-kumagai@wm.jp.nec.com>
> Cc: linux-mm@kvack.org

Ughh. Sorry.

Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>

Please queue it to stable.

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2017-12-23 10:55    [W:0.263 / U:2.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site