mm: cma: WARN if freed memory is still in use
authorMarek Szyprowski <[email protected]>
Thu, 20 Dec 2012 23:05:18 +0000 (15:05 -0800)
committerLinus Torvalds <[email protected]>
Fri, 21 Dec 2012 01:40:19 +0000 (17:40 -0800)
commitbcc2b02f4c1b36bc67272df7119b75bac78525ab
treedb4b0ad1693c2b25da06655b6e7dd409c85ec120
parentb66c5984017533316fd1951770302649baf1aa33
mm: cma: WARN if freed memory is still in use

Memory returned to free_contig_range() must have no other references.
Let kernel to complain loudly if page reference count is not equal to 1.

[[email protected]: support sparsemem]
Signed-off-by: Marek Szyprowski <[email protected]>
Reviewed-by: Kyungmin Park <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c