memblock: Make memblock functions handle overflowing range @size
authorTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:07 +0000 (10:22 -0800)
committerTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:07 +0000 (10:22 -0800)
commiteb18f1b5bfb99b1d7d2f5d792e6ee5c9b7d89330
tree6f2a6865b929358c1c46a61f7f3ac5563cc03f02
parent719361809fde9dbe9ccc4cf71f9fa9add5fa8bf9
memblock: Make memblock functions handle overflowing range @size

Allow memblock users to specify range where @base + @size overflows
and automatically cap it at maximum.  This makes the interface more
robust and specifying till-the-end-of-memory easier.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>
mm/memblock.c