]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: meminit: only set page reserved in the memblock region
authorNathan Zimmer <nzimmer@sgi.com>
Tue, 30 Jun 2015 21:56:48 +0000 (14:56 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 01:50:11 +0000 (17:50 -0800)
commit35d7de6449327c64ed82c3e2b8c071a7664e0b19
tree4dfd983c4bd4a1b5c575fe4f4e0dbd5238641905
parentb8640f76ec53b8b0a1e67f1d11306f8e642d56bc
mm: meminit: only set page reserved in the memblock region

Orabug: 25477822

Currently each page struct is set as reserved upon initialization.  This
patch leaves the reserved bit clear and only sets the reserved bit when it
is known the memory was allocated by the bootmem allocator.  This makes it
easier to distinguish between uninitialised struct pages and reserved
struct pages in later patches.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Tested-by: Nate Zimmer <nzimmer@sgi.com>
Tested-by: Waiman Long <waiman.long@hp.com>
Tested-by: Daniel J Blueman <daniel@numascale.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Robin Holt <robinmholt@gmail.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Waiman Long <waiman.long@hp.com>
Cc: Scott Norton <scott.norton@hp.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 92923ca3aacef63c92dc297a75ad0c6dfe4eab37)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
mm/nobootmem.c
mm/page_alloc.c
include/linux/mm.h
mm/nobootmem.c
mm/page_alloc.c