Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp936391rwo; Wed, 2 Aug 2023 06:31:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgcPnhuE+AtI1+er41+KV5mV0dFidLbsX+u2wXmtzkOHIFepwV7bDdjxvsV1Tcun/wJ5hW X-Received: by 2002:a05:6e02:1aad:b0:346:50ce:d602 with SMTP id l13-20020a056e021aad00b0034650ced602mr18416014ilv.1.1690983106575; Wed, 02 Aug 2023 06:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690983106; cv=none; d=google.com; s=arc-20160816; b=oZfSM7om576r9SRGJmJM2a3w8kUV+X9JuCpPs8IPkbFlgRNkgiRoJFTGqo7TP8nOWk O7Vb+vKVPqxctW8aATLCroUweTlY7i4ZuDDq7B/AdD1kwvbdna1zUTMB2cZLkqpkEqol uDGdA0rq93zZ7u4e+nHK3VH85PauL60sitUMvy7WRNVcvEh/KFm921bDoovci6JnPgQa +RO3GI5AM6xRUp/S4acm/qyMI9iFojmgxeTIR13rP/vEFgXkS4cR/FjQyzqw9LTEzJUZ /sKGAN6wUkcKja9L7RikMFfs0j6bPv2PJTKiiLuZDvSLfi+QbkYfYBUYHa76EW5Ziw3H WZyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=Z1vUSG5iAc4nZhvDgE68C3u2zlvlafDAQO70pMIDrQ4=; fh=mVhMJGhD/nY1soI+soREwao2d1HCunD89kPpAA7ySqs=; b=gWdWU6VNiXMjXHL4AT/aarZvJaX/PvFR52Jk0YYdmKv8AEq/+08G+D1hjoCYkzF6NT FSl9dgmAz1b3qvzxl1wXMA1oeKfpESPVAESjD3Ykj5ph0fgkqKJYtcd3HlVBB4OJk44/ U3ubCMeraDoB4YBmouDl9IPTISSfWusKRghwqRy/nEfcM3YAqtj3WQogvs93lD4pMFY5 +CZWzDKiTSggsY+m99eWZJAFBadXj2cX64VH+2rznJjW+tyrJ599y5H1vOXDw4194mGM im8pUzIyX7U/Y5DE6GmdpggAuiObi9BODfi5OQrtz0s7OvRctcIAtbkQz9/Hw2vX21Um XUlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b189-20020a6334c6000000b00563e0be1de6si3870819pga.824.2023.08.02.06.31.33; Wed, 02 Aug 2023 06:31:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233820AbjHBMie (ORCPT + 99 others); Wed, 2 Aug 2023 08:38:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234519AbjHBMiX (ORCPT ); Wed, 2 Aug 2023 08:38:23 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED12326B0 for ; Wed, 2 Aug 2023 05:38:20 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RGBJJ01GtztRLq; Wed, 2 Aug 2023 20:34:55 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 2 Aug 2023 20:38:17 +0800 Message-ID: <32b748d2-3d88-87d6-3797-c82d7bb7a927@huawei.com> Date: Wed, 2 Aug 2023 20:38:17 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 0/4] mm: migrate: more folio conversion Content-Language: en-US To: David Hildenbrand , Andrew Morton , , CC: Huang Ying , Matthew Wilcox References: <20230802095346.87449-1-wangkefeng.wang@huawei.com> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/8/2 19:47, David Hildenbrand wrote: > On 02.08.23 11:53, Kefeng Wang wrote: >> This patch series converts several functions to use folio in migrate.c. > > Please clearly spell out in the patch descriptions when you are changing > mapcount logic and which effects that might have (both, positive and > negative) for PTE-mapped THP. Oh, I see your comments on another mail[1], the folio_estimated_sharers() is not good to evaluate the sharing by multiple processes, will read more history of the mail's discussion, maybe just ignore the first three patches. Thank. [1] [PATCH 0/2] don't use mapcount() to check large folio sharing >