Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp101378iog; Sun, 12 Jun 2022 20:26:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEZXyyckCoEzAyHtgILvPCa5eyWquFIo0ZcxLGaPEaghRHZtb1KElSRpzOVwbj7O33NX+I X-Received: by 2002:a17:906:73cf:b0:713:f60a:8f9 with SMTP id n15-20020a17090673cf00b00713f60a08f9mr9052755ejl.124.1655090810664; Sun, 12 Jun 2022 20:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655090810; cv=none; d=google.com; s=arc-20160816; b=g0NRRkfHsnBq6KdlwtpUXIhAOKVfbMdz0/SUJBIxMjL6KPAEO+5heuktzAsQ5YpW2x yjIyTTKMKQGGsrKSoqs6Gk2OaHIJ6wufI0e4tV5ou5JJCL9MR1Olfn2PggMRCnoWsbff fY4UXoiTUDmJBj4BaS+5hEbksUQ7YmpiIV8OLvRdWm1A8p5ywJzi0L1UpX7xgOQPwrMh rk1hXxEqrUBiRzAWuM55zGmkYmbP5iRlS7NF3bqueJD7HWPEz+8hB/d5thRSOKIPzZHs ueMYbXN65t5fF2Tqj1SWNrf1wGa/bjddixnVNCNUBJts42HQOZ7dxns3ba5kXutss6Um z+xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=bXv04/LIecWZUh1kkoDsNJHxyt1LRZKb1eQWu17Ljqw=; b=oTx2A34QuZj3k4s1H2b8RJtSieAU6w/8oDqa/MMCSXOakkr/B2FudCnR4vfxErgHyW 8Vc08o8o78F03vdceLu8Hqdo35qdRbzydir54E44FL3Cv/aixfQ8qvAcotptuGALAwtu DwJzDol9yG8Bw3AOVj+fBz3dOmKSOJFyOwmL9f0Y9/AqyrNUUj1fysv9R4IcanseJe1F 9myOyfm+rbPUaNTnyyllda7lnnkrCCn2ZKGmoHRfxbijiGS6rN+w51NXdBZajb68jjBn zLgw2bpmWGk9Ry6lFPnc6U6tv1+1IqwDTtI1KJO7cfUdEreD+9tfa31IMmHmpqTsJZMr 4xWQ== 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 oz32-20020a1709077da000b0070f4410aef2si6622031ejc.586.2022.06.12.20.26.26; Sun, 12 Jun 2022 20:26:50 -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 S229478AbiFMBtY (ORCPT + 99 others); Sun, 12 Jun 2022 21:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234556AbiFMBsc (ORCPT ); Sun, 12 Jun 2022 21:48:32 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09C3F1A045 for ; Sun, 12 Jun 2022 18:48:30 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4LLvbT2MstzDqsL; Mon, 13 Jun 2022 09:48:05 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 13 Jun 2022 09:48:28 +0800 Subject: Re: [PATCH 1/7] mm/khugepaged: remove unneeded shmem_huge_enabled() check To: Andrew Morton CC: , , , , , , , , , , References: <20220611084731.55155-1-linmiaohe@huawei.com> <20220611084731.55155-2-linmiaohe@huawei.com> <20220611133336.b582edd4c2c2df15f5561d2b@linux-foundation.org> From: Miaohe Lin Message-ID: Date: Mon, 13 Jun 2022 09:48:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20220611133336.b582edd4c2c2df15f5561d2b@linux-foundation.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 2022/6/12 4:33, Andrew Morton wrote: > On Sat, 11 Jun 2022 16:47:25 +0800 Miaohe Lin wrote: > >> If we reach here, hugepage_vma_check() has already made sure that hugepage >> is enabled for shmem. Remove this duplicated check. > > I updated this to > > If we reach here, hugepage_vma_check() has already made sure that hugepage > is enabled for shmem, via its call to hugepage_vma_check(). Remove this > duplicated check. Do you mean "khugepaged_scan_mm_slot() has already made sure that hugepage is enabled for shmem, via its call to hugepage_vma_check()"? Thanks! > > . >