From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751813AbaAMMth (ORCPT ); Mon, 13 Jan 2014 07:49:37 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:48914 "EHLO e06smtp13.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbaAMMtL (ORCPT ); Mon, 13 Jan 2014 07:49:11 -0500 From: Philipp Hachtmann To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, qiuxishi@huawei.com, dhowells@redhat.com, daeseok.youn@gmail.com, liuj97@gmail.com, yinghai@kernel.org, phacht@linux.vnet.ibm.com, zhangyanfei@cn.fujitsu.com, santosh.shilimkar@ti.com, grygorii.strashko@ti.com, tangchen@cn.fujitsu.com Subject: [PATCH V2 0/2] mm/memblock: Excluded memory, free_all_bootmem Date: Mon, 13 Jan 2014 13:48:59 +0100 Message-Id: <1389617341-568-1-git-send-email-phacht@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.4.5 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14011312-2966-0000-0000-000009EB02B6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two patches fit (only) on top of linux-next! The first patch changes back the behavior of free_all_bootmem() to a more generic way: With CONFIG_DISCARD_MEMBLOCK memblock.memory and memblock.reserved will be freed (if allocated, of course). Removed the debugfs dependency. Think this is cleaner. While further working on the s390 migration to memblock it is desirable to have memblock support unmapped (i.e. completely forgotten and unused) memory areas. The usual way of just forgetting about them by means of truncating the memblocks does not work for us because we still need the information about the real full memory structure at a later time. Philipp Hachtmann (2): mm/nobootmem: free_all_bootmem again mm/memblock: Add support for excluded memory areas include/linux/memblock.h | 50 +++++++-- mm/Kconfig | 3 + mm/memblock.c | 276 ++++++++++++++++++++++++++++++++++------------- mm/nobootmem.c | 13 ++- 4 files changed, 255 insertions(+), 87 deletions(-) -- 1.8.4.5