Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3521423pxb; Mon, 16 Nov 2020 17:40:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIqFqqRFxl1sk6ZGKT8vNXtYQrR339uhOLks68KgGNE5TE1bOb48/Kqk5W372U0n3DZi26 X-Received: by 2002:a17:906:c18c:: with SMTP id g12mr16965809ejz.334.1605577227056; Mon, 16 Nov 2020 17:40:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605577227; cv=none; d=google.com; s=arc-20160816; b=fI2UaDGjg0J3S9HthCR8QCqhfdJ3pY4MKu/OEuhoTHQ/UgeHgGwhJEeE13C0BKiaMJ 0FdZDjMZKOjURNHTOeMM30Pdz+ln+y2/JLt9f5Nmeu35XEMzcIN3jxULyAvPQ+4wgAx8 iwBjX15H8TfDn1Vj6esKr186ZDTFpOAMJZ1/WmnAIt2s5UxCMaKJebzfcAk3ytRSTgEi UISZ5DhleMr29Fi5gcTADCNY0dF0dl92e/HzKcjRAnyjZT4+hqRjGZsuuL9I6WV2ZpHQ /9Oge4ljdJaCO2SquOsbgfQV5Cg2AETslFX+eO0WO2/DAa3zEtPErJJY9DmoXBuOl47B c0mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=9pRXd931nTmk7A0gCARP/B9Va9fTU5U2tYS53VeOmA0=; b=BZb8fu1DDavC7wdyLZ/yQLXQej92BGLJrhpQSTDcpx6MD+7uBNTu3ti+V4bIAh2+LF 4n+l6lfb0QK7BasCWMALoyx7ePanNvEsPGYkSFgpbeUEk885RVJvCxz/rHE0eoARvAGw joH/UUdS6E/Qqz32TvU4LoM4ZAKpJN4Aa/9NENloDNh9GuOiyYcvU7Aw8wylHG5gAJqp QTeZU5GXbPBA3vF/XYJD4NYjlQwciO7I3w0BE/DZNZNnNlLGZSUK0IAETHGHlleDoM/R 083qqAbBF6IR+1U4RnKU6L5LWieBkFMmi82rDMY57KZ7Zt90i7OfOeCgMZkBV9Wq9FOQ pjPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si13160790edy.389.2020.11.16.17.40.03; Mon, 16 Nov 2020 17:40:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbgKPIma (ORCPT + 99 others); Mon, 16 Nov 2020 03:42:30 -0500 Received: from szxga01-in.huawei.com ([45.249.212.187]:2063 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbgKPIm3 (ORCPT ); Mon, 16 Nov 2020 03:42:29 -0500 Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4CZMxw0d7SzVpND; Mon, 16 Nov 2020 16:41:56 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by DGGEMM402-HUB.china.huawei.com (10.3.20.210) with Microsoft SMTP Server (TLS) id 14.3.487.0; Mon, 16 Nov 2020 16:42:17 +0800 Received: from dggpemm000001.china.huawei.com (7.185.36.245) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Mon, 16 Nov 2020 16:42:17 +0800 Received: from dggpemm000001.china.huawei.com ([7.185.36.245]) by dggpemm000001.china.huawei.com ([7.185.36.245]) with mapi id 15.01.1913.007; Mon, 16 Nov 2020 16:42:17 +0800 From: "liwei (CM)" To: "Song Bao Hua (Barry Song)" , Catalin Marinas , Mike Rapoport CC: "will@kernel.org" , "Xiaqing (A)" , "Chenfeng (puck)" , butao , fengbaopeng , "nsaenzjulienne@suse.de" , "steve.capper@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , sujunfei , Linuxarm Subject: =?gb2312?B?tPC4tDogW1BBVENIIHYyXSBhcm02NDogbW06IGZyZWUgdW51c2VkIG1lbW1h?= =?gb2312?Q?p_for_sparse_memory_model_that_define_VMEMMAP?= Thread-Topic: [PATCH v2] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP Thread-Index: AQHWcETlDVvjE2IvJkCQH2P2F6bPZqk7c02AgBr7NwCAdBE4gIAAh5EA Date: Mon, 16 Nov 2020 08:42:17 +0000 Message-ID: References: <20200812010655.96339-1-liwei213@huawei.com> <20200817080405.GL969206@linux.ibm.com> <20200903120558.GB31409@gaia> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.182.180.136] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEJhcnJ5DQoNCkkgaGF2ZSBjaGFuZ2VkIFNFQ1RJT05fU0laRV9CSVRTIHRvIDI3IGluIG91 ciBwcm9kdWN0cywgYnV0IEkgZG9uJ3QgaGF2ZSB0byBzdWJtaXQgaXQuDQoNCi0tLS0t08q8/tSt vP4tLS0tLQ0Kt6K8/sjLOiBTb25nIEJhbyBIdWEgKEJhcnJ5IFNvbmcpIA0Kt6LLzcqxvOQ6IDIw MjDE6jEx1MIxNsjVIDE2OjM0DQ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