]> git.baikalelectronics.ru Git - kernel.git/commit
Fix alloc_node_mem_map() to work on ia64 again
authorTony Luck <tony.luck@intel.com>
Tue, 10 Nov 2015 18:09:47 +0000 (10:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Nov 2015 22:44:26 +0000 (14:44 -0800)
commit473f180eac71884219603316868704918e7d756c
tree54aa8f78967e60d869d4502ab4554aae4676d6b9
parenta027610e4032b3f339fbced8f0e94afaad3947fc
Fix alloc_node_mem_map() to work on ia64 again

In commit fb3fc93d1235 ("mm: Don't offset memmap for flatmem") Laura
fixed a problem for Srinivas relating to the bottom 2MB of RAM on an ARM
IFC6410 board.

One small wrinkle on ia64 is that it allocates the node_mem_map earlier
in arch code, so it skips the block of code where "offset" is
initialized.

Move initialization of start and offset before the check for the
node_mem_map so that they will always be available in the latter part of
the function.

Tested-by: Laura Abbott <laura@labbott.name>
Fixes: fb3fc93d1235 (mm: Don't offset memmap for flatmem)
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c