Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1369092ybt; Thu, 9 Jul 2020 05:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrJqo9RimFVGZsvTxQai9LmQDGBEsW+gdlZQJ8oxmYrdtWfbcCXFaJh9hpDfP7fLMoF0/u X-Received: by 2002:a17:906:b24d:: with SMTP id ce13mr59136435ejb.546.1594297750548; Thu, 09 Jul 2020 05:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594297750; cv=none; d=google.com; s=arc-20160816; b=UyDLz9lrpmkGkronFqD0pOAP1A2VQnwskx/ZjOhiZfmSlv2tGSE32v12oGh522e8Bn xJBqe2Gj15Qax8Q9bU/UZUHSoueXA+l3uG8mKvqQfKNUuK7qdR8Pwe0bAJdwd/2ivAQQ GBmeJ2sCt9wtixY3hr+Y2VghDyr0eEcnYorMNx+moYLzwt2V9DGt0CuIGE30NDd7KkgW hRWDUXSF7T7/yg+YidJ1dZ4rZl2GJ/6b0GHZlfXVMZ14dvXm/zdG8djb19oLjkK/Ia4B eKdjWPgRNcgrAcHsmIUKH/wll99ZaTkwXfw9O0bVk433wFfNohuM0NTakQ0wZEz5+CYQ mglA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=xA0wFgFT+CHsJAOna4cEsJMY5nUMVqpjMqjuitVkftQ=; b=Y4buG6WOsZDBz8BWHmYkSnOpyai9ecPcUTx0PQ2ElWqXZ8SjY4k7T7ay37HPru+RTy XOd8UoaffHu17aSZbsqOpa0iITiUc5KDZF3wYyyBhUztTfCJkTrX4SF5lVOX44NAtENR LmV1o3BwBBp2+6NXliYiPcPJ5q9U+MUCWgSvkLvAhUSW8NnzynBKQ8DyLEG5wUwYErlk BsW8gKNS1CFpFsQOR9bCieyZk7rpoJ9Cjhrcol1cTMxKLHXA/GkBuf65kHeuzHgviCD1 Boj8p31LiQrHQ61UfWzXAjSjzcMaEOU9sYQoS3eG62fswagroBSWRYEMSQOY2cZDpYnp HZYQ== 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 gu14si1792527ejb.589.2020.07.09.05.28.47; Thu, 09 Jul 2020 05:29:10 -0700 (PDT) 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 S1727094AbgGIM10 (ORCPT + 99 others); Thu, 9 Jul 2020 08:27:26 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:35344 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726605AbgGIM10 (ORCPT ); Thu, 9 Jul 2020 08:27:26 -0400 Received: from dggemi405-hub.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id D44486ED531235F12C5A; Thu, 9 Jul 2020 20:27:20 +0800 (CST) Received: from DGGEMI525-MBS.china.huawei.com ([169.254.6.177]) by dggemi405-hub.china.huawei.com ([10.3.17.143]) with mapi id 14.03.0487.000; Thu, 9 Jul 2020 20:27:12 +0800 From: "Song Bao Hua (Barry Song)" To: "liwei (CM)" , "catalin.marinas@arm.com" , "will@kernel.org" CC: fengbaopeng , "nsaenzjulienne@suse.de" , "steve.capper@arm.com" , "rppt@linux.ibm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , sujunfei , "Xiaqing (A)" , "Yaobaofeng (Yaobaofeng)" Subject: RE: [PATCH] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP Thread-Topic: [PATCH] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP Thread-Index: AQHWVMrtlX9AbygsxkCkGlEoK5gXXaj9QcNg//+H1QCAAmJ40A== Date: Thu, 9 Jul 2020 12:27:11 +0000 Message-ID: References: <20200708015555.14946-1-liwei213@huawei.com> <1699CE87DE933F49876AD744B5DC140F230F8396@DGGEMM506-MBS.china.huawei.com> In-Reply-To: <1699CE87DE933F49876AD744B5DC140F230F8396@DGGEMM506-MBS.china.huawei.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.202.83] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogbGl3ZWkgKENNKQ0KPiBT ZW50OiBXZWRuZXNkYXksIEp1bHkgOCwgMjAyMCA3OjUyIFBNDQo+IFRvOiBTb25nIEJhbyBIdWEg KEJhcnJ5IFNvbmcpIDxzb25nLmJhby5odWFAaGlzaWxpY29uLmNvbT47DQo+IGNhdGFsaW4ubWFy aW5hc0Bhcm0uY29tOyB3aWxsQGtlcm5lbC5vcmcNCj4gQ2M6IGZlbmdiYW9wZW5nIDxmZW5nYmFv cGVuZzJAaGlzaWxpY29uLmNvbT47IG5zYWVuemp1bGllbm5lQHN1c2UuZGU7DQo+IHN0ZXZlLmNh cHBlckBhcm0uY29tOyBycHB0QGxpbnV4LmlibS5jb207DQo+IGxpbnV4LWFybS1rZXJuZWxAbGlz dHMuaW5mcmFkZWFkLm9yZzsgbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsgc3VqdW5mZWkN Cj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