Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2014304rwo; Thu, 3 Aug 2023 03:31:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpvlxeQE3mu/Q356Uc8ZhNOE2GsvBwqZQWfoIYq8IckB7BOeBQKfl6JaQLyEUBOslRrrNV X-Received: by 2002:aa7:cb19:0:b0:523:e23:2fba with SMTP id s25-20020aa7cb19000000b005230e232fbamr1393381edt.14.1691058709638; Thu, 03 Aug 2023 03:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691058709; cv=none; d=google.com; s=arc-20160816; b=ww1Nf+cwksteqHEvR6TU0bVkyYjbGPotKKtbuTuUIeQ66ypWhoLk/jC4CsKDY+1Nk4 +nYBA0rw63hlJNKryrfK9023I6uqc6Pq1F9OhctBp86uxq2594d53F0+LmVsRaArEA91 9Kv+tea/7IDRYCX+ieQhJkns7+6EmacQuXD8A1CguSpNfsFDuzK4G/+Y5TR/ta8yjvjl y+zk8+rP/2A0YZWktWSXgxwtyiS1jW60bhROc/fEEXJDSB1fO7KwXbSosSgUQlJenDKH lgFesHeXq5niVHkZijffv2nwb7I0eF1Zox7r/PKHuERVLkiaOHiWfR8xWMkcn+fMYobN WY9Q== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=sAtmKskyJZMhBCz6si9v3A7sUPeiZS5ZoWATo1UhLv4=; fh=C0zDLQTbbkMt23tgomtD6jgPMjAXpP95SenregBDTG4=; b=yo5L+5ZkPQtJvdN+H+jd99D1iF6EEZNU/a1yWI/8K+sT37lQGz/oJRnor07ja6zPPv EAlfknypmwb7pJu3V5PDYfB+qU3Upk7U0fXb/OgeqZxAhzat9ggNHh9dlAsjZqML14xZ JbDjbwS2xiFvYaQkkeEK6HE6ErUxh/IOQDuihJ3sSsC7xctHh7Jk1Qgoxl3SVr+oJX9M c1hky1pBeEXTqsP9ph5MEpnCYsI27f52pDFh9gc4HjqqFDcYo4eiDUtM8rImXZTUa8JD UAb25f3YX64FnZiorICEV7W5hzC7Cn21+UZTel14/gps1MF4kiWXyN8k2v1nPhn6ULzF 272A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EjeH0col; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020aa7c908000000b005223c340277si852267edt.426.2023.08.03.03.31.24; Thu, 03 Aug 2023 03:31:49 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EjeH0col; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234983AbjHCJhZ (ORCPT + 99 others); Thu, 3 Aug 2023 05:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235184AbjHCJgb (ORCPT ); Thu, 3 Aug 2023 05:36:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 962B6421E for ; Thu, 3 Aug 2023 02:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691055304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sAtmKskyJZMhBCz6si9v3A7sUPeiZS5ZoWATo1UhLv4=; b=EjeH0colkcgtPUxaYn8W27OIAEXtE1H3JF3nqEeuzB2emlqbYNEWYMUYrtJtOsF5cOzaM0 ciRsVRFO56Wnh2q3COtjgbHl/BuNHTmcmpbvhY2gOSnaHNpHJCIibFi9RwY/SPdkNPEsvq qaWjhwNAzlxmFLkJ6xEHpWPuvvBDGuI= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-510-OZtM1sSWNQCTisbay1piHA-1; Thu, 03 Aug 2023 05:35:03 -0400 X-MC-Unique: OZtM1sSWNQCTisbay1piHA-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-30793c16c78so443412f8f.3 for ; Thu, 03 Aug 2023 02:35:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691055302; x=1691660102; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sAtmKskyJZMhBCz6si9v3A7sUPeiZS5ZoWATo1UhLv4=; b=UYo0QaXN3fxMikcPiU5wSb1Hg0O+RBZRB9mzbGBe0v2PRL/r4ilcmH1CK8eel+TRX/ eWGMXpOkx+4+FY99/AovXU6tEoMQ+8TeTFW3Gy4HN0KI5OdbRqqWLCcFgHRfEAzkSId6 oqim83HsUZA2g+iNg2n9FYyGJ7eFFzcYZaW7RtI0qtmFDHSHVqI91QmE1fGEBEMG1usV eOOjUG6QMeHxvWB8MLLQ9XB06UQ4xhu2YdI4089MAnMUydpKBFkRmsCgfB0XnQEf1Ycw mxoHphdwZK7lH+qrokIWlf5NOXY1bTLQIkr3E3uBD4KXj3UoatlhDTceAEYWoUW89ylY 1o7w== X-Gm-Message-State: ABy/qLa++K3IabxoJHyChb2WRrjhx3xHDLodTXUYAtAhRww+50zjcb3N /FNqkcxLMVZ27Xsj7MiNIxPqoLFX6M/oV/fD/TrZ7mOqDegDTez/3S9ALiGtBo4zRSLXsKQs/fn iSxe10BRvqazc6HmKkvARe2Gf X-Received: by 2002:a5d:460f:0:b0:315:9993:1caa with SMTP id t15-20020a5d460f000000b0031599931caamr4886061wrq.12.1691055301826; Thu, 03 Aug 2023 02:35:01 -0700 (PDT) X-Received: by 2002:a5d:460f:0:b0:315:9993:1caa with SMTP id t15-20020a5d460f000000b0031599931caamr4886051wrq.12.1691055301420; Thu, 03 Aug 2023 02:35:01 -0700 (PDT) Received: from ?IPV6:2003:cb:c718:9a00:a5f5:5315:b9fa:64df? (p200300cbc7189a00a5f55315b9fa64df.dip0.t-ipconnect.de. [2003:cb:c718:9a00:a5f5:5315:b9fa:64df]) by smtp.gmail.com with ESMTPSA id p9-20020adfce09000000b0031763fd36c4sm21300996wrn.104.2023.08.03.02.35.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Aug 2023 02:35:00 -0700 (PDT) Message-ID: <007ae337-1e92-d43f-6204-5987698aa7bf@redhat.com> Date: Thu, 3 Aug 2023 11:34:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 0/4] mm: migrate: more folio conversion Content-Language: en-US To: Kefeng Wang , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Huang Ying , Matthew Wilcox References: <20230802095346.87449-1-wangkefeng.wang@huawei.com> <32b748d2-3d88-87d6-3797-c82d7bb7a927@huawei.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <32b748d2-3d88-87d6-3797-c82d7bb7a927@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,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 02.08.23 14:38, Kefeng Wang wrote: > > > 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. It might be good enough for some cases right now. My point is that we better just clearly spell out the possible effects of such a change. (so far you didn't even mention them, and that's sub-optimal when buried in a "folio" conversion that better shouldn't change the functionality without spelling it out) -- Cheers, David / dhildenb