]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e569b08222069095b7b428b6de4c712f95dc09a
tree6f2a6865b929358c1c46a61f7f3ac5563cc03f02
parentdf7ed1ae815c0b850fe9004510fc5090a8f365a1
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