]> git.baikalelectronics.ru Git - kernel.git/commit
mm: simplify parater of function memmap_init_zone()
authorBaoquan He <bhe@redhat.com>
Wed, 24 Feb 2021 20:06:17 +0000 (12:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:31 +0000 (13:38 -0800)
commitc69899abe41b5ca7ad78b8488066ca0a15fbde8a
tree8ea79fa68b37b8a60f54f282a47079f8284de26c
parent10dc97dde33c62bc36136cdd371257d71075dcc0
mm: simplify parater of function memmap_init_zone()

As David suggested, simply passing 'struct zone *zone' is enough.  We can
get all needed information from 'struct zone*' easily.

Link: https://lkml.kernel.org/r/20210122135956.5946-4-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Suggested-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/mm/init.c
include/linux/mm.h
mm/page_alloc.c