mm: cma: add functions to get region pages counters
authorDmitry Safonov <[email protected]>
Wed, 15 Apr 2015 23:14:59 +0000 (16:14 -0700)
committerLinus Torvalds <[email protected]>
Wed, 15 Apr 2015 23:35:20 +0000 (16:35 -0700)
commit2e32b947606daa642a28bfb9b57e9702cfc9a8b3
tree2fea9a8a680d68a2e987182651592ec5de5fb51f
parent79553da293d38d63097278de13e28a3b371f43c1
mm: cma: add functions to get region pages counters

Here are two functions that provide interface to compute/get used size and
size of biggest free chunk in cma region.  Add that information to
debugfs.

[[email protected]: move debug code from cma.c into cma_debug.c]
[[email protected]: move code from cma_get_used() and cma_get_maxchunk() to cma_used_get() and cma_maxchunk_get()]
Signed-off-by: Dmitry Safonov <[email protected]>
Signed-off-by: Stefan Strogin <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Pintu Kumar <[email protected]>
Cc: Weijie Yang <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Vyacheslav Tyrtov <[email protected]>
Cc: Aleksei Mateosian <[email protected]>
Signed-off-by: Stefan Strogin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/cma_debug.c