Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2939231rwe; Mon, 29 Aug 2022 03:05:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5KgqSZtXKG2YVtKDJySTlKRhMtcITT6Zk1bJ1duDJRsAy+P3fTFy0FW4MsNgjTa2lnpoEn X-Received: by 2002:a05:6402:90e:b0:443:ec4b:2b03 with SMTP id g14-20020a056402090e00b00443ec4b2b03mr15520501edz.71.1661767548553; Mon, 29 Aug 2022 03:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661767548; cv=none; d=google.com; s=arc-20160816; b=CVCxkzFOwaBnOfZk885RTTIXlzy2/iB3PbjJRoAMmf1ZZX/e/1DSujxUWPg5JDnryH q7veriPvntMkH35MRqBrj/jNI26SNIeia5e5CvlkROZmV/jfMXnRHN1sVGSAAU5M6llF Pe67ttFlRERBAYqN3SCk4gLrRoy3emhNX5n31MwQyntRoPcCOAq/3YLkM0pEH6/Jtjq2 nOjRIFKwX3sx2CyHqa3OIJcXdZUa1uNBOkrObVnlKwTewV40m4wbwrPsJGHczIrbJdR7 hB3mSQR+gAAxgoBzjeUK2aJwxSTd9wq2lxVzU5wpUYbD3JYX3QKJLJpRAQqjuUXLkL34 KMSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8pE9qT+UqvS4FyvJ/n1wDgtDX3/XyW97wEbYx/RB54E=; b=wUva1nPjLaaMEOMo33EhI5Ze6EKgm5/QvEPbWfdQucLfe4aZh7G0ZKsEsnOgnl0/ls JHEQR6sXNDp5pqrYiJ1DKk81sKf0GfuIrs5egKk3kI9lrilOoCUIEIECt/pONVfGpJWa 88/zUqUVPOn8PrugQzTriT68oGa5LnhP6gsNrv9xwzk4vZzALuXglMsz8NxZ4Nku/ONc 9AbY8T1Qz/cmAL3MwIPaclU+8FNE0CALBvHOAuZhAlOayL6l1weip7jmirUZQVl9yPwQ JEhWI+R5SkBkixvDtOAdpp2ucAIScQx4xxdDhL//eDaxhVbw98BjUDXdHXB5zNsmHP4q d4tA== 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 ga28-20020a1709070c1c00b00730d106e832si3996053ejc.248.2022.08.29.03.05.22; Mon, 29 Aug 2022 03:05:48 -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 S229781AbiH2JRA (ORCPT + 99 others); Mon, 29 Aug 2022 05:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiH2JQ6 (ORCPT ); Mon, 29 Aug 2022 05:16:58 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D7165A2FD for ; Mon, 29 Aug 2022 02:16:56 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MGPsn449zzHnWK; Mon, 29 Aug 2022 17:15:09 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 29 Aug 2022 17:16:54 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 29 Aug 2022 17:16:54 +0800 From: Liu Shixin To: Andrew Morton , Matthew Wilcox , Kefeng Wang CC: , Liu Shixin Subject: [PATCH] mm/thp: remove redundant CONFIG_TRANSPARENT_HUGEPAGE Date: Mon, 29 Aug 2022 17:51:25 +0800 Message-ID: <20220829095125.3284567-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 Simplify code by removing redundant CONFIG_TRANSPARENT_HUGEPAGE judgment. No functional change. Signed-off-by: Liu Shixin --- include/linux/pgtable.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index d9095251bffd..73fb1b2af795 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -1289,8 +1289,7 @@ static inline int pgd_devmap(pgd_t pgd) #endif #if !defined(CONFIG_TRANSPARENT_HUGEPAGE) || \ - (defined(CONFIG_TRANSPARENT_HUGEPAGE) && \ - !defined(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) + !defined(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD) static inline int pud_trans_huge(pud_t pud) { return 0; -- 2.25.1