mm/memblock.c: expose total reserved memory
authorSrikar Dronamraju <[email protected]>
Fri, 7 Oct 2016 23:59:18 +0000 (16:59 -0700)
committerLinus Torvalds <[email protected]>
Sat, 8 Oct 2016 01:46:28 +0000 (18:46 -0700)
commit8907de5dc6e9d5925cf3b0a698cc3a4272fda073
tree8fa6fca9d4bca76358f73044638e3f68fab4bbad
parentf6f34b4387d9e18304451a131b35d7c4f27a0b5a
mm/memblock.c: expose total reserved memory

The total reserved memory in a system is accounted but not available for
use use outside mm/memblock.c.  By exposing the total reserved memory,
systems can better calculate the size of large hashes.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Srikar Dronamraju <[email protected]>
Suggested-by: Mel Gorman <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Mahesh Salgaonkar <[email protected]>
Cc: Hari Bathini <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memblock.h
mm/memblock.c