Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2037990pxm; Fri, 4 Mar 2022 08:16:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqR648lXuEfB3kIuOowessC7gSe7fFi5zSHdmAZcfTdmfpW4H9Z4T2hs3nX6zzbC3ueND0 X-Received: by 2002:a05:6a00:cc7:b0:4ec:c6f3:ad29 with SMTP id b7-20020a056a000cc700b004ecc6f3ad29mr44029402pfv.66.1646410577177; Fri, 04 Mar 2022 08:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646410577; cv=none; d=google.com; s=arc-20160816; b=RXx6PIUKc2Ji1HFRLiREW2+aWUXYO3lH4Sb0Vkv3PaNTzImuzsKC+FNNFDazWW1Rmb HeROqLOS/2XxHETKmPgBgNg2NXvuCsgd1l9SZlrDvShpMx8K488oxiT1f3AuSwNz/UUQ pAw/iIFzMDZdmTUPpNViUn8ynkS5IaZ3PhLIsFlWAECYXpEVTf7UdZUQmQUQGxTdtv4p Z/nc6VTl6Tz54nvsnY+zObcqF8zQoe6KPCGVURXdFNetknY5JKPSZe5F2tP0eeAEBg+J Ttt2mD0YFeSn73oygKwpxATg6lwpN6YnNgO1d5RjezhSFvbIlIgD9kvozQyz29uWmGn3 kc6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Va7pm6YfkZeAbrpNqakjmUYEWCDrVBcf2Tch6HcV5QU=; b=Lp2RFtNFb0v8dgc6dhz+hd4GIK0cYwG5r/Kk1f+cbdnNa1XkAxYhZcxr2pjdm86yXO JBz8UjUGRQFF2QeU81CtozYiuUN1FIlt3Le5WuUBUD7VPfIZ+9Rw40+Rc9fTOsTMgNUH hkjtLzaff6QTMuy3AKXVEO2p4KTo8HOwDKm60GdG8I3HO+IwCls27oqt7nYsUj1x1u6Y h3s1c0cGU75kC+6Jl+Qn7B3YPrgtsJuWy9XQAEWnhN8oDJ/8laJfuwSXFGYGdFfLBQNa YkKa9aUgJHhfQR/JXhepQQn6TpBe1dMvjaKv3IOeJLWEpmEb4g733lKNCKPMY9YCA2ng KYSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=a6tmluHU; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob4-20020a17090b390400b001bf083fb02dsi5450599pjb.92.2022.03.04.08.15.59; Fri, 04 Mar 2022 08:16:17 -0800 (PST) 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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=a6tmluHU; 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=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234324AbiCDMWZ (ORCPT + 99 others); Fri, 4 Mar 2022 07:22:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232425AbiCDMWX (ORCPT ); Fri, 4 Mar 2022 07:22:23 -0500 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE68A1AF8F6 for ; Fri, 4 Mar 2022 04:21:35 -0800 (PST) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-2dbd97f9bfcso89131687b3.9 for ; Fri, 04 Mar 2022 04:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Va7pm6YfkZeAbrpNqakjmUYEWCDrVBcf2Tch6HcV5QU=; b=a6tmluHUdF4MvXjWaVWyG8XU8E/xgviObiZjdI56I7Nf6V9/94iQLqae+1MK6cZo/v KAQhYhOOBzMhszXbPBM43MyDSegi+YnyM34ZNhGQ8Z+Ya+dMoSbmKW3eG6daKhg4ZOXr mdV26fYFNXHFOKaeypZPbdU+Hhc/oBaiSjolXfEgwlh9f9zp1Xe7KkIRxf0mkzbz2yaG mk3p/PDNBzhLKN0lgKMH626+fuftiP00EEKiDZsY9ohDKDW85JMV2HM+S/lJQJLQNFai /RHA9tByZfoGN3u66XVLwLz7/COxxo1BW0CzdwkuIni2fTsG0AqQX4hYr3bkVzDFIhjV 8Iuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Va7pm6YfkZeAbrpNqakjmUYEWCDrVBcf2Tch6HcV5QU=; b=5ImHwT+uhDP6mjj2MZv0vLmgYtpvmbzl0aexUz5SCBRlr80xfKImx68F2In7zi4i8w Rssirb8fIPvU2aGRKU2aLKqFpfAXub7pG8XsGES8KXOJ6NRCXf0u925OxHF3J/tKczKJ PIJfSz3PSxHrhAqvfAieDh0SErXXvJYZYPomnYDSBsjjztEH2iloHD1X8VaDwTcPAY7w r+LvXDwy1QvOsUHxKnpmK7MgdmmXcUnYmv90EM9PjIB7pGlPVKIT1Nj6yXVeJNwBek+Q /GJVBaaQ5MU7eMXeADTgDNQepZx3bAvDmiOBkiQwkwrZoZ14fYiF7k+D1RzeqoCVI7JW UMCw== X-Gm-Message-State: AOAM532NT3Gwq5XST2/FTZw/4sDqUbKSIUUChaXrHhvXq1jZcQj5OJbp ASZKv2eEFLQC0sAqw1kc/vjcijMO+QY+98LCwg8adQ== X-Received: by 2002:a81:6344:0:b0:2d5:e25c:3ceb with SMTP id x65-20020a816344000000b002d5e25c3cebmr39290031ywb.418.1646396495195; Fri, 04 Mar 2022 04:21:35 -0800 (PST) MIME-Version: 1.0 References: <20220304093409.25829-1-linmiaohe@huawei.com> <20220304093409.25829-6-linmiaohe@huawei.com> In-Reply-To: <20220304093409.25829-6-linmiaohe@huawei.com> From: Muchun Song Date: Fri, 4 Mar 2022 20:20:47 +0800 Message-ID: Subject: Re: [PATCH 05/16] mm/migration: fix the confusing PageTransHuge check To: Miaohe Lin Cc: Andrew Morton , Mike Kravetz , Yang Shi , Matthew Wilcox , Huang Ying , Zi Yan , Minchan Kim , Alistair Popple , ave.hansen@linux.intel.com, o451686892@gmail.com, Mina Almasry , John Hubbard , Ralph Campbell , Peter Xu , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Michal Hocko , riel@redhat.com, Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 Fri, Mar 4, 2022 at 5:35 PM Miaohe Lin wrote: > > prep_transhuge_page should be called when PageTransHuge(page) is true. > The newly allocated new_page is not yet PageTransHuge though it could > pass the check as PageTransHuge only checks PageHead now. > > Signed-off-by: Miaohe Lin At least I agree with you. Reviewed-by: Muchun Song