The patch titled Subject: mm-cma-warn-if-freed-memory-is-still-in-use-fix has been removed from the -mm tree. Its filename was mm-cma-warn-if-freed-memory-is-still-in-use-fix.patch This patch was dropped because it was folded into mm-cma-warn-if-freed-memory-is-still-in-use.patch ------------------------------------------------------ From: David Rientjes <rientjes@xxxxxxxxxx> Subject: mm-cma-warn-if-freed-memory-is-still-in-use-fix Support sparsemem. (And prevent "count" overflow if nr_pages cannot fit in signed type.) Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Cc: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> Cc: Michal Nazarewicz <mina86@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff -puN mm/page_alloc.c~mm-cma-warn-if-freed-memory-is-still-in-use-fix mm/page_alloc.c --- a/mm/page_alloc.c~mm-cma-warn-if-freed-memory-is-still-in-use-fix +++ a/mm/page_alloc.c @@ -5981,9 +5981,11 @@ done: void free_contig_range(unsigned long pfn, unsigned nr_pages) { - struct page *page = pfn_to_page(pfn); - int count = 0; - for (; nr_pages--; page++) { + unsigned int count = 0; + + for (; nr_pages--; pfn++) { + struct page *page = pfn_to_page(pfn); + count += page_count(page) != 1; __free_page(page); } _ Patches currently in -mm which might be from rientjes@xxxxxxxxxx are origin.patch mm-cma-warn-if-freed-memory-is-still-in-use.patch mm-clean-up-transparent-hugepage-sysfs-error-messages.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html