]> git.baikalelectronics.ru Git - kernel.git/commit
memblock: Add array resizing support
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 6 Jul 2010 22:39:13 +0000 (15:39 -0700)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Aug 2010 02:56:20 +0000 (12:56 +1000)
commit69bda28a3b99b22cd4c8035043f326e5a6f78882
tree478f95f05f923e63a845d6f8272647cf40765c4c
parente5dc07115bc76ae183dd8d653f7ccbad5804df99
memblock: Add array resizing support

When one of the array gets full, we resize it. After much thinking and
a few iterations of that code, I went back to on-demand resizing using
the (new) internal memblock_find_base() function, which is pretty much what
Yinghai initially proposed, though there some differences in the details.

To work this relies on the default alloc limit being set sensibly by
the architecture.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
mm/memblock.c